Skip to content

Commit

Permalink
[core] Port fixes from Material UI v6 migration branch (#3910)
Browse files Browse the repository at this point in the history
  • Loading branch information
Janpot authored Aug 9, 2024
1 parent a74365e commit 28ba0e8
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 9 deletions.
8 changes: 8 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,8 @@ jobs:
- run:
name: Check Typescript types
command: pnpm check-types
environment:
NODE_OPTIONS: --max-old-space-size=3584
test_static:
<<: *default-job
steps:
Expand Down Expand Up @@ -163,6 +165,8 @@ jobs:
- run:
name: 'Build packages'
command: pnpm release:build
environment:
NODE_OPTIONS: --max-old-space-size=3584
- run:
name: Tests fake browser
command: pnpm test
Expand All @@ -182,6 +186,8 @@ jobs:
- run:
name: 'Build packages'
command: pnpm release:build
environment:
NODE_OPTIONS: --max-old-space-size=3584
- run:
name: Tests real browser
command: pnpm test:browser
Expand All @@ -203,6 +209,8 @@ jobs:
- run:
name: 'Build packages'
command: pnpm release:build
environment:
NODE_OPTIONS: --max-old-space-size=3584
- run:
name: Tests real browser
command: pnpm test:integration
Expand Down
2 changes: 1 addition & 1 deletion examples/core-auth-nextjs-pages/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"@mui/material-nextjs": "next",
"@toolpad/core": "latest",
"next": "14.2.4",
"next-auth": "beta",
"next-auth": "5.0.0-beta.20",
"react": "18.3.1",
"react-dom": "18.3.1"
},
Expand Down
2 changes: 1 addition & 1 deletion examples/core-auth-nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"@mui/material-nextjs": "next",
"@toolpad/core": "latest",
"next": "14.2.4",
"next-auth": "beta",
"next-auth": "5.0.0-beta.20",
"react": "18.3.1",
"react-dom": "18.3.1"
},
Expand Down
3 changes: 3 additions & 0 deletions examples/core-tutorial/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
import { createTheme } from '@mui/material/styles';

const theme = createTheme({
cssVariables: {
colorSchemeSelector: 'data-toolpad-color-scheme',
},
colorSchemes: {
light: {
palette: {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"test:browser": "FORCE_COLOR=1 pnpm run -r test:browser",
"test:argos": "node ./scripts/pushArgos.mjs",
"test": "lerna run test --stream",
"check-types": "lerna run check-types",
"check-types": "lerna run --concurrency 1 check-types",
"toolpad-studio": "node --enable-source-maps packages/toolpad-studio/cli.mjs",
"jsonSchemas": "tsx ./scripts/docs/generateJsonSchemas.ts",
"update-monorepo": "tsx ./scripts/updateMonorepo.ts",
Expand Down
2 changes: 1 addition & 1 deletion playground/nextjs-pages/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"@types/react-dom": "18.3.0",
"eslint-config-next": "14.2.5",
"next": "14.2.5",
"next-auth": "beta",
"next-auth": "5.0.0-beta.20",
"react": "18.3.1",
"react-dom": "18.3.1"
}
Expand Down
2 changes: 1 addition & 1 deletion playground/nextjs-pages/src/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const providers: Provider[] = [
return {
id: 'test',
name: 'Test User',
email: c.email,
email: String(c.email),
};
},
}),
Expand Down
2 changes: 1 addition & 1 deletion playground/nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"@types/react-dom": "18.3.0",
"eslint-config-next": "14.2.5",
"next": "14.2.5",
"next-auth": "beta",
"next-auth": "5.0.0-beta.20",
"react": "18.3.1",
"react-dom": "18.3.1"
}
Expand Down
2 changes: 1 addition & 1 deletion playground/nextjs/src/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const providers: Provider[] = [
return {
id: 'test',
name: 'Test User',
email: c.email,
email: String(c.email),
};
},
}),
Expand Down
4 changes: 2 additions & 2 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 28ba0e8

Please sign in to comment.