Skip to content

Commit f2b373c

Browse files
committed
add Provider
1 parent 6055986 commit f2b373c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

examples/s2-next-macros/src/app/layout.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,10 @@
1212

1313
import {ClientProviders} from './provider';
1414
import type { Metadata } from "next";
15+
import { Provider } from '@react-spectrum/s2';
1516

1617
export const metadata: Metadata = {
17-
title: "React Spectrum's Spectrum 2 Next Example App",
18+
title: "Spectrum 2 + Next.js",
1819
description: "Generated by create next app",
1920
};
2021

@@ -24,12 +25,12 @@ export default function RootLayout({
2425
children: React.ReactNode;
2526
}>) {
2627
return (
27-
<html lang="en">
28+
<Provider elementType="html" locale="en-US">
2829
<body>
2930
<ClientProviders>
3031
{children}
3132
</ClientProviders>
3233
</body>
33-
</html>
34+
</Provider>
3435
);
3536
}

0 commit comments

Comments
 (0)