mirror of
https://github.com/Buriburizaem0n/admin-frontend-domain.git
synced 2026-02-05 13:10:08 +00:00
* feat: add user_template setting * style: header * style: page padding * style: header * feat: header now time * style: login page * feat: nav indicator * style: button inset shadow * style: footer text size * feat: header show login_ip * fix: error toast * fix: frontend_templates setting * fix: lint * feat: pr auto format * chore: auto-fix linting and formatting issues --------- Co-authored-by: hamster1963 <hamster1963@users.noreply.github.com>
22 lines
860 B
TypeScript
22 lines
860 B
TypeScript
import { Tabs, TabsList, TabsTrigger } from "@/components/ui/tabs"
|
|
import { useTranslation } from "react-i18next"
|
|
import { Link, useLocation } from "react-router-dom"
|
|
|
|
export const NotificationTab = ({ className }: { className?: string }) => {
|
|
const { t } = useTranslation()
|
|
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">{t("Notifier")}</Link>
|
|
</TabsTrigger>
|
|
<TabsTrigger value="/dashboard/alert-rule" asChild>
|
|
<Link to="/dashboard/alert-rule">{t("AlertRule")}</Link>
|
|
</TabsTrigger>
|
|
</TabsList>
|
|
</Tabs>
|
|
)
|
|
}
|