implement notification page (#8)

This commit is contained in:
UUBulb authored and GitHub committed 2024-11-20 21:37:03 +08:00
1 parent 0e4bcd3938
commit 059c33eda4
27 files changed
+1133 -36

No files matched your search

+23
View File
@@ -0,0 +1,23 @@
import {
Tabs,
TabsList,
TabsTrigger,
} from "@/components/ui/tabs"
import { Link, useLocation } from "react-router-dom"
export const NotificationTab = ({ className }: { className?: string }) => {
const location = useLocation();
return (
<Tabs defaultValue={location.pathname} className={className}>
<TabsList className="grid w-full grid-cols-2">
<TabsTrigger value="/dashboard/notification" asChild>
<Link to="/dashboard/notification">Notifier</Link>
</TabsTrigger>
<TabsTrigger value="/dashboard/alert-rule" asChild>
<Link to="/dashboard/alert-rule">Alert Rule</Link>
</TabsTrigger>
</TabsList>
</Tabs>
)
}