Skip to content

Commit

Permalink
fix demo types
Browse files Browse the repository at this point in the history
  • Loading branch information
mnajdova committed Sep 20, 2023
1 parent 0358299 commit 6d86eb7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from 'react';
import styled, { InterpolationFunction, ThemeProvider } from 'styled-components';
import styled, { ThemeProvider, StyleFunction } from 'styled-components';
import { unstable_styleFunctionSx, SxProps } from '@mui/system';
import { createTheme } from '@mui/material/styles';

Expand All @@ -10,7 +10,7 @@ interface DivProps {
const theme = createTheme();

const Div = styled('div')<DivProps>(
unstable_styleFunctionSx as InterpolationFunction<DivProps>,
unstable_styleFunctionSx as StyleFunction<DivProps>,
);

export default function StyleFunctionSxDemo() {
Expand Down
2 changes: 1 addition & 1 deletion docs/src/modules/components/AppLayoutDocs.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ const GlobalStyles = createGlobalStyle({
':root': {
'--MuiDocs-navDrawer-width': '300px',
},
})
});

export default function AppLayoutDocs(props) {
const router = useRouter();
Expand Down

0 comments on commit 6d86eb7

Please sign in to comment.