Skip to content

Commit

Permalink
docs: fix typo in CSS Modules Description (#52599)
Browse files Browse the repository at this point in the history
## Description
Remove unnecessary type in the JSX file. Additionally, this change helps maintain consistency with the examples below

## References
[CSS Modules Description page link](https://nextjs.org/docs/app/building-your-application/styling/css-modules)
  • Loading branch information
Ryan-Dia committed Jul 12, 2023
1 parent 22cb1bf commit 967c501
Showing 1 changed file with 1 addition and 5 deletions.
Expand Up @@ -40,11 +40,7 @@ export default function DashboardLayout({
```jsx filename="app/dashboard/layout.js" switcher
import styles from './styles.module.css'

export default function DashboardLayout({
children,
}: {
children: React.ReactNode,
}) {
export default function DashboardLayout({ children }) {
return <section className={styles.dashboard}>{children}</section>
}
```
Expand Down

0 comments on commit 967c501

Please sign in to comment.