migration correction et maj
Some checks failed
Build and Push App / build (push) Failing after 11m56s

This commit is contained in:
2026-05-03 23:15:14 +02:00
parent 5f421b418e
commit 16d66c0456
19 changed files with 1482 additions and 1355 deletions

View File

@@ -1,12 +1,12 @@
"use client";
import React, { createContext, useContext, useState, ReactNode } from 'react';
import { User } from '../types';
import { User, SiteSetting } from '../types';
import { useRouter, usePathname } from 'next/navigation';
interface UserContextType {
user: User | null;
settings: any | null;
settings: SiteSetting | null;
login: (user: User) => void;
logout: () => void;
}
@@ -15,7 +15,7 @@ const UserContext = createContext<UserContextType | undefined>(undefined);
export function UserProvider({ children }: { children: ReactNode }) {
const [user, setUser] = useState<User | null>(null);
const [settings, setSettings] = useState<any>(null);
const [settings, setSettings] = useState<SiteSetting | null>(null);
const router = useRouter();
const pathname = usePathname();