- ToastProvider/useToast déplacés dans @napps/design-system/toast ("use client")
- index principal de nouveau importable depuis un Server Component
- test de non-régression test/run-next-smoke.sh (next build)
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
16 lines
485 B
TypeScript
16 lines
485 B
TypeScript
// Server Component. ToastProvider est un composant client : il passe par un wrapper
|
|
// "use client" (voir providers.tsx), c'est le motif documenté dans le README.
|
|
import '@napps/design-system/tokens.css';
|
|
import type { ReactNode } from 'react';
|
|
import { Providers } from './providers';
|
|
|
|
export default function RootLayout({ children }: { children: ReactNode }) {
|
|
return (
|
|
<html lang="fr">
|
|
<body>
|
|
<Providers>{children}</Providers>
|
|
</body>
|
|
</html>
|
|
);
|
|
}
|