|
@@ -10,6 +10,7 @@ import { useAuth } from '@/hooks/useAuth';
|
|
|
import { useSuperUser } from '@/hooks/useSuperUser';
|
|
import { useSuperUser } from '@/hooks/useSuperUser';
|
|
|
import { useIsMobile } from '@/hooks/use-mobile';
|
|
import { useIsMobile } from '@/hooks/use-mobile';
|
|
|
import CategoryFilter from '@/components/CategoryFilter';
|
|
import CategoryFilter from '@/components/CategoryFilter';
|
|
|
|
|
+import ThemeToggle from '@/components/ThemeToggle';
|
|
|
import { NewsItem, NewsCategory } from '@/types/news';
|
|
import { NewsItem, NewsCategory } from '@/types/news';
|
|
|
|
|
|
|
|
interface HeaderProps {
|
|
interface HeaderProps {
|
|
@@ -128,6 +129,8 @@ const Header = ({
|
|
|
</Button>
|
|
</Button>
|
|
|
</Link>
|
|
</Link>
|
|
|
|
|
|
|
|
|
|
+ <ThemeToggle />
|
|
|
|
|
+
|
|
|
<Button variant="ghost" size="sm">
|
|
<Button variant="ghost" size="sm">
|
|
|
<Settings className="h-4 w-4" />
|
|
<Settings className="h-4 w-4" />
|
|
|
</Button>
|
|
</Button>
|
|
@@ -286,6 +289,11 @@ const Header = ({
|
|
|
<Settings className="h-4 w-4" />
|
|
<Settings className="h-4 w-4" />
|
|
|
Paramètres
|
|
Paramètres
|
|
|
</Button>
|
|
</Button>
|
|
|
|
|
+
|
|
|
|
|
+ <div className="flex items-center justify-between px-4 py-2">
|
|
|
|
|
+ <span className="text-sm">Thème sombre</span>
|
|
|
|
|
+ <ThemeToggle />
|
|
|
|
|
+ </div>
|
|
|
</>
|
|
</>
|
|
|
)}
|
|
)}
|
|
|
</nav>
|
|
</nav>
|