Skip to content

Commit

Permalink
chore(examples): updated the example of with-styled-components-rtl to…
Browse files Browse the repository at this point in the history
… 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 <[email protected]>
  • Loading branch information
Manoj-M-S and samcx authored Jan 7, 2025
1 parent 9b79c11 commit 6d69257
Show file tree
Hide file tree
Showing 9 changed files with 0 additions and 198 deletions.
40 changes: 0 additions & 40 deletions examples/with-styled-components-rtl/.gitignore

This file was deleted.

37 changes: 0 additions & 37 deletions examples/with-styled-components-rtl/README.md

This file was deleted.

8 changes: 0 additions & 8 deletions examples/with-styled-components-rtl/next.config.js

This file was deleted.

21 changes: 0 additions & 21 deletions examples/with-styled-components-rtl/package.json

This file was deleted.

17 changes: 0 additions & 17 deletions examples/with-styled-components-rtl/pages/_app.tsx

This file was deleted.

33 changes: 0 additions & 33 deletions examples/with-styled-components-rtl/pages/_document.tsx

This file was deleted.

11 changes: 0 additions & 11 deletions examples/with-styled-components-rtl/pages/index.tsx

This file was deleted.

9 changes: 0 additions & 9 deletions examples/with-styled-components-rtl/styled.d.ts

This file was deleted.

22 changes: 0 additions & 22 deletions examples/with-styled-components-rtl/tsconfig.json

This file was deleted.

0 comments on commit 6d69257

Please sign in to comment.