feat: add documentation link and redirect to WIKI_URI
This commit is contained in:
@@ -1,9 +1,11 @@
|
|||||||
import {useActiveProject} from '../lib/contexts/ActiveProjectProvider';
|
import {useActiveProject} from '../lib/contexts/ActiveProjectProvider';
|
||||||
import {useUser} from '../lib/hooks/useUser';
|
import {useUser} from '../lib/hooks/useUser';
|
||||||
|
import {WIKI_URI} from '../lib/constants';
|
||||||
import {network} from '../lib/network';
|
import {network} from '../lib/network';
|
||||||
import {
|
import {
|
||||||
Activity,
|
Activity,
|
||||||
BarChart3,
|
BarChart3,
|
||||||
|
BookOpen,
|
||||||
ChevronDown,
|
ChevronDown,
|
||||||
FileText,
|
FileText,
|
||||||
Layers,
|
Layers,
|
||||||
@@ -246,6 +248,16 @@ export function DashboardLayout({children}: DashboardLayoutProps) {
|
|||||||
|
|
||||||
{/* Settings & User Menu */}
|
{/* Settings & User Menu */}
|
||||||
<div className="border-t border-neutral-200 p-3 space-y-1">
|
<div className="border-t border-neutral-200 p-3 space-y-1">
|
||||||
|
<a
|
||||||
|
href={WIKI_URI}
|
||||||
|
target="_blank"
|
||||||
|
rel="noopener noreferrer"
|
||||||
|
className="flex items-center gap-3 px-3 py-2 text-sm font-medium rounded-lg transition-colors text-neutral-700 hover:bg-neutral-50 hover:text-neutral-900"
|
||||||
|
>
|
||||||
|
<BookOpen className="h-5 w-5" />
|
||||||
|
Documentation
|
||||||
|
</a>
|
||||||
|
|
||||||
<Link
|
<Link
|
||||||
href="/settings"
|
href="/settings"
|
||||||
onClick={() => setShowMobileMenu(false)}
|
onClick={() => setShowMobileMenu(false)}
|
||||||
|
|||||||
@@ -0,0 +1,15 @@
|
|||||||
|
import {WIKI_URI} from '../lib/constants';
|
||||||
|
import type {GetServerSideProps} from 'next';
|
||||||
|
|
||||||
|
export default function Docs() {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
export const getServerSideProps: GetServerSideProps = async () => {
|
||||||
|
return {
|
||||||
|
redirect: {
|
||||||
|
destination: WIKI_URI,
|
||||||
|
permanent: false,
|
||||||
|
},
|
||||||
|
};
|
||||||
|
};
|
||||||
Reference in New Issue
Block a user