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;
|
||||
}
|
||||
|
||||
export const ControlsContainer = ({ header, children }: Props) => (
|
||||
<Box
|
||||
sx={{
|
||||
position: 'relative',
|
||||
height: '100%',
|
||||
width: '100%',
|
||||
display: 'flex',
|
||||
flexDirection: 'column'
|
||||
}}
|
||||
>
|
||||
<Box sx={{ width: '100%', boxShadow: 6, zIndex: 1 }}>{header}</Box>
|
||||
export const ControlsContainer = ({ header, children }: Props) => {
|
||||
return (
|
||||
<Box
|
||||
sx={{
|
||||
position: 'relative',
|
||||
height: '100%',
|
||||
width: '100%',
|
||||
overflowY: 'scroll',
|
||||
flexGrow: 1,
|
||||
'&::-webkit-scrollbar': {
|
||||
display: 'none'
|
||||
},
|
||||
'-ms-overflow-style': 'none',
|
||||
'scrollbar-width': 'none'
|
||||
display: 'flex',
|
||||
flexDirection: 'column'
|
||||
}}
|
||||
>
|
||||
<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>
|
||||
);
|
||||
);
|
||||
};
|
||||
|
|
|
@ -9,7 +9,7 @@ interface Props {
|
|||
height?: number;
|
||||
}
|
||||
|
||||
const tools = ['bold', 'italic', 'underline', 'strike', 'bullet', 'link'];
|
||||
const tools = ['bold', 'italic', 'underline', 'strike', 'link'];
|
||||
|
||||
export const MarkdownEditor = ({
|
||||
value,
|
||||
|
|
Loading…
Reference in a new issue