next.js
6d692576 - chore(examples): updated the example of with-styled-components-rtl to utlize the App router (#74180)

Commit
1 year ago
chore(examples): updated the example of with-styled-components-rtl to utlize the App router (#74180) This PR updates the with-styled-components-rtl example to use the App Router. Here are the changes that have been made: - Renamed the `pages` folder to the `app` folder. - Converted the `index.tsx` to `page.tsx` file as part of the App Router. - Created `layout.tsx` in app directory, merging functionality from both ` _app.tsx` and `_document.tsx`: - `ThemeProvider` setup from `_app.tsx` - `RTL` and `styled-components` setup from `_document.tsx` - Created `lib/registry.tsx` for styled-components server-side rendering and moved styled-components server-side rendering logic from `_document.tsx` - Updated the package.json file. The following actions were performed as part of this PR: - Ran `pnpm prettier-check` with no issues found. - Executed the `pnpm check-examples` script. CC: @samcx --------- Co-authored-by: samcx <sam@vercel.com>
Author
Parents
Loading