Create Api Key added
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
import { NavLink } from '@/components/NavLink';
|
||||
import { Activity, Settings, Server, Menu, X, Users, LogIn } from 'lucide-react';
|
||||
import { Activity, Settings, Server, Menu, X, Users, LogIn, Key } from 'lucide-react';
|
||||
import { cn } from '@/lib/utils';
|
||||
import { useState } from 'react';
|
||||
import { Button } from '@/components/ui/button';
|
||||
@ -65,6 +65,18 @@ export function Layout({ children }: LayoutProps) {
|
||||
<Users className="w-4 h-4" />
|
||||
Utilisateurs
|
||||
</NavLink>
|
||||
<NavLink
|
||||
to="/admin/api-keys"
|
||||
className={cn(
|
||||
'flex items-center gap-2 px-4 py-2 rounded-lg text-sm font-medium',
|
||||
'text-muted-foreground hover:text-foreground hover:bg-muted/50',
|
||||
'transition-colors'
|
||||
)}
|
||||
activeClassName="bg-muted text-foreground"
|
||||
>
|
||||
<Key className="w-4 h-4" />
|
||||
Clés API
|
||||
</NavLink>
|
||||
<NavLink
|
||||
to="/login"
|
||||
className={cn(
|
||||
@ -134,6 +146,19 @@ export function Layout({ children }: LayoutProps) {
|
||||
<Users className="w-5 h-5" />
|
||||
Utilisateurs
|
||||
</NavLink>
|
||||
<NavLink
|
||||
to="/admin/api-keys"
|
||||
className={cn(
|
||||
'flex items-center gap-3 px-4 py-3 rounded-lg text-sm font-medium w-full',
|
||||
'text-muted-foreground hover:text-foreground hover:bg-muted/50',
|
||||
'transition-colors'
|
||||
)}
|
||||
activeClassName="bg-muted text-foreground"
|
||||
onClick={() => setMobileMenuOpen(false)}
|
||||
>
|
||||
<Key className="w-5 h-5" />
|
||||
Clés API
|
||||
</NavLink>
|
||||
<NavLink
|
||||
to="/login"
|
||||
className={cn(
|
||||
|
||||
Reference in New Issue
Block a user