Skip to content

Commit c91235e

Browse files
committed
fix: more specific interfaces and index signatures
A more specific interface can't be assigned to a more generic one if the generic one has an index signature. Workaround used from microsoft/TypeScript#15300 (comment)
1 parent a20a273 commit c91235e

File tree

8 files changed

+8
-8
lines changed

8 files changed

+8
-8
lines changed

docs/src/pages/components/drawers/ClippedDrawer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const useStyles = makeStyles(theme => ({
3333
flexGrow: 1,
3434
padding: theme.spacing(3),
3535
},
36-
toolbar: theme.mixins.toolbar,
36+
toolbar: { ...theme.mixins.toolbar },
3737
}));
3838

3939
export default function ClippedDrawer() {

docs/src/pages/components/drawers/ClippedDrawer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const useStyles = makeStyles((theme: Theme) =>
3434
flexGrow: 1,
3535
padding: theme.spacing(3),
3636
},
37-
toolbar: theme.mixins.toolbar,
37+
toolbar: { ...theme.mixins.toolbar },
3838
}),
3939
);
4040

docs/src/pages/components/drawers/PermanentDrawerLeft.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const useStyles = makeStyles(theme => ({
3030
drawerPaper: {
3131
width: drawerWidth,
3232
},
33-
toolbar: theme.mixins.toolbar,
33+
toolbar: { ...theme.mixins.toolbar },
3434
content: {
3535
flexGrow: 1,
3636
backgroundColor: theme.palette.background.default,

docs/src/pages/components/drawers/PermanentDrawerLeft.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const useStyles = makeStyles((theme: Theme) =>
3131
drawerPaper: {
3232
width: drawerWidth,
3333
},
34-
toolbar: theme.mixins.toolbar,
34+
toolbar: { ...theme.mixins.toolbar },
3535
content: {
3636
flexGrow: 1,
3737
backgroundColor: theme.palette.background.default,

docs/src/pages/components/drawers/PermanentDrawerRight.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const useStyles = makeStyles(theme => ({
3030
drawerPaper: {
3131
width: drawerWidth,
3232
},
33-
toolbar: theme.mixins.toolbar,
33+
toolbar: { ...theme.mixins.toolbar },
3434
content: {
3535
flexGrow: 1,
3636
backgroundColor: theme.palette.background.default,

docs/src/pages/components/drawers/PermanentDrawerRight.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const useStyles = makeStyles((theme: Theme) =>
3131
drawerPaper: {
3232
width: drawerWidth,
3333
},
34-
toolbar: theme.mixins.toolbar,
34+
toolbar: { ...theme.mixins.toolbar },
3535
content: {
3636
flexGrow: 1,
3737
backgroundColor: theme.palette.background.default,

docs/src/pages/components/drawers/ResponsiveDrawer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ const useStyles = makeStyles(theme => ({
4141
display: 'none',
4242
},
4343
},
44-
toolbar: theme.mixins.toolbar,
44+
toolbar: { ...theme.mixins.toolbar },
4545
drawerPaper: {
4646
width: drawerWidth,
4747
},

docs/src/pages/components/drawers/ResponsiveDrawer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ const useStyles = makeStyles((theme: Theme) =>
4141
display: 'none',
4242
},
4343
},
44-
toolbar: theme.mixins.toolbar,
44+
toolbar: { ...theme.mixins.toolbar },
4545
drawerPaper: {
4646
width: drawerWidth,
4747
},

0 commit comments

Comments
 (0)