mirror of
https://github.com/markmanx/isoflow.git
synced 2025-02-08 04:18:29 +00:00
fix: console errors
This commit is contained in:
parent
d017b3eaa8
commit
213a5d62e9
2 changed files with 22 additions and 22 deletions
|
@ -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>
|
);
|
||||||
);
|
};
|
||||||
|
|
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue