mirror of
https://github.com/Buriburizaem0n/admin-frontend-domain.git
synced 2026-02-05 05:00:06 +00:00
implement group page (#6)
* implement group page * group state, search box * rename some field * update api types
This commit is contained in:
23
src/components/group-tab.tsx
Normal file
23
src/components/group-tab.tsx
Normal file
@@ -0,0 +1,23 @@
|
||||
import {
|
||||
Tabs,
|
||||
TabsList,
|
||||
TabsTrigger,
|
||||
} from "@/components/ui/tabs"
|
||||
import { Link, useLocation } from "react-router-dom"
|
||||
|
||||
export const GroupTab = () => {
|
||||
const location = useLocation();
|
||||
|
||||
return (
|
||||
<Tabs defaultValue={location.pathname}>
|
||||
<TabsList className="grid w-full grid-cols-2">
|
||||
<TabsTrigger value="/dashboard/server-group" asChild>
|
||||
<Link to="/dashboard/server-group">Server</Link>
|
||||
</TabsTrigger>
|
||||
<TabsTrigger value="/dashboard/notification-group" asChild>
|
||||
<Link to="/dashboard/notification-group">Notification</Link>
|
||||
</TabsTrigger>
|
||||
</TabsList>
|
||||
</Tabs>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user