Skip to content

Commit c8e712d

Browse files
committed
Fix material ui
1 parent 898ba3e commit c8e712d

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

benchmark/next-mui/src/app/page.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,18 @@ export default function HomePage() {
3535
<Box>hello</Box>
3636
</Box>
3737
<Typography color="$text">text</Typography>
38-
<Box color={enabled ? 'green' : 'blue'} fontSize={[32]} pr="20px">
38+
<Box
39+
sx={{ color: enabled ? 'green' : 'blue', fontSize: [32], pr: '20px' }}
40+
>
3941
hello
4042
</Box>
41-
<Box fontSize={[12, 32]}>hello</Box>
43+
<Box sx={{ fontSize: [12, 32] }}>hello</Box>
4244
<button
4345
onClick={() => {
4446
setColor('blue')
4547
setEnabled((prev) => !prev)
4648
}}
49+
type="button"
4750
>
4851
Change
4952
</button>

0 commit comments

Comments
 (0)