v0.1.8 — corrige l'import côté Server Component (Next App Router)
- 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>
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
// 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>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user