fix: console errors

This commit is contained in:
Mark Mankarious 2023-08-10 22:56:47 +01:00
parent d017b3eaa8
commit 213a5d62e9
2 changed files with 22 additions and 22 deletions

View file

@ -6,30 +6,30 @@ interface Props {
children: React.ReactNode; children: React.ReactNode;
} }
export const ControlsContainer = ({ header, children }: Props) => ( export const ControlsContainer = ({ header, children }: Props) => {
<Box return (
sx={{
position: 'relative',
height: '100%',
width: '100%',
display: 'flex',
flexDirection: 'column'
}}
>
<Box sx={{ width: '100%', boxShadow: 6, zIndex: 1 }}>{header}</Box>
<Box <Box
sx={{ sx={{
position: 'relative',
height: '100%',
width: '100%', width: '100%',
overflowY: 'scroll', display: 'flex',
flexGrow: 1, flexDirection: 'column'
'&::-webkit-scrollbar': {
display: 'none'
},
'-ms-overflow-style': 'none',
'scrollbar-width': 'none'
}} }}
> >
<Box sx={{ width: '100%', pb: 6 }}>{children}</Box> <Box sx={{ width: '100%', boxShadow: 6, zIndex: 1 }}>{header}</Box>
<Box
sx={{
width: '100%',
overflowY: 'scroll',
flexGrow: 1,
'&::-webkit-scrollbar': {
display: 'none'
}
}}
>
<Box sx={{ width: '100%', pb: 6 }}>{children}</Box>
</Box>
</Box> </Box>
</Box> );
); };

View file

@ -9,7 +9,7 @@ interface Props {
height?: number; height?: number;
} }
const tools = ['bold', 'italic', 'underline', 'strike', 'bullet', 'link']; const tools = ['bold', 'italic', 'underline', 'strike', 'link'];
export const MarkdownEditor = ({ export const MarkdownEditor = ({
value, value,