Skip to content

Commit

Permalink
[examples] Simplify Next.js example (mui#40318)
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari authored and mnajdova committed Jan 9, 2024
1 parent 3641835 commit 3fa1168
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 24 deletions.
5 changes: 1 addition & 4 deletions examples/base-ui-nextjs-tailwind-ts/next.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
swcMinify: true,
};
const nextConfig = {};

module.exports = nextConfig;
3 changes: 2 additions & 1 deletion examples/base-ui-nextjs-tailwind-ts/src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ export const metadata = {
description: 'Generated by create next app',
};

export default function RootLayout({ children }: { children: React.ReactNode }) {
export default function RootLayout(props: { children: React.ReactNode }) {
const { children } = props;
return (
<html lang="en">
<body className={font.className}>{children}</body>
Expand Down
5 changes: 1 addition & 4 deletions examples/joy-ui-nextjs-ts/next.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
swcMinify: true,
};
const nextConfig = {};

module.exports = nextConfig;
3 changes: 2 additions & 1 deletion examples/joy-ui-nextjs-ts/src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ export const metadata = {
description: 'Generated by create next app',
};

export default function RootLayout({ children }: { children: React.ReactNode }) {
export default function RootLayout(props: { children: React.ReactNode }) {
const { children } = props;
return (
<html lang="en">
<body>
Expand Down
7 changes: 0 additions & 7 deletions examples/material-ui-nextjs-ts/next.config.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
swcMinify: true,
modularizeImports: {
'@mui/icons-material': {
transform: '@mui/icons-material/{{member}}',
},
},
images: {
remotePatterns: [
{
Expand Down
7 changes: 0 additions & 7 deletions examples/material-ui-nextjs/next.config.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
swcMinify: true,
modularizeImports: {
'@mui/icons-material': {
transform: '@mui/icons-material/{{member}}',
},
},
images: {
remotePatterns: [
{
Expand Down

0 comments on commit 3fa1168

Please sign in to comment.