mirror of
https://github.com/Qortal/Qortal-Hub.git
synced 2025-06-14 12:01:21 +00:00
Remove unused imports and format code
This commit is contained in:
parent
db05ce4a3e
commit
ed62c15b65
@ -1,32 +1,21 @@
|
|||||||
import * as React from 'react';
|
|
||||||
import Box from '@mui/material/Box';
|
import Box from '@mui/material/Box';
|
||||||
import Drawer from '@mui/material/Drawer';
|
import Drawer from '@mui/material/Drawer';
|
||||||
import Button from '@mui/material/Button';
|
|
||||||
import List from '@mui/material/List';
|
|
||||||
import Divider from '@mui/material/Divider';
|
|
||||||
import ListItem from '@mui/material/ListItem';
|
|
||||||
import ListItemButton from '@mui/material/ListItemButton';
|
|
||||||
import ListItemIcon from '@mui/material/ListItemIcon';
|
|
||||||
import ListItemText from '@mui/material/ListItemText';
|
|
||||||
import InboxIcon from '@mui/icons-material/MoveToInbox';
|
|
||||||
import MailIcon from '@mui/icons-material/Mail';
|
|
||||||
import CloseIcon from '@mui/icons-material/Close';
|
|
||||||
import { isMobile } from '../../App';
|
import { isMobile } from '../../App';
|
||||||
export const DrawerComponent = ({ open, setOpen, children }) => {
|
export const DrawerComponent = ({ open, setOpen, children }) => {
|
||||||
|
|
||||||
const toggleDrawer = (newOpen: boolean) => () => {
|
const toggleDrawer = (newOpen: boolean) => () => {
|
||||||
setOpen(newOpen);
|
setOpen(newOpen);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<Drawer open={open} onClose={toggleDrawer(false)}>
|
<Drawer open={open} onClose={toggleDrawer(false)}>
|
||||||
<Box sx={{ width: isMobile ? '100vw' : '400px', height: '100%' }} role="presentation">
|
<Box
|
||||||
|
sx={{ width: isMobile ? '100vw' : '400px', height: '100%' }}
|
||||||
|
role="presentation"
|
||||||
|
>
|
||||||
{children}
|
{children}
|
||||||
</Box>
|
</Box>
|
||||||
</Drawer>
|
</Drawer>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
};
|
||||||
|
@ -1,22 +1,26 @@
|
|||||||
import * as React from 'react';
|
|
||||||
import Box from '@mui/material/Box';
|
import Box from '@mui/material/Box';
|
||||||
import Drawer from '@mui/material/Drawer';
|
import Drawer from '@mui/material/Drawer';
|
||||||
|
|
||||||
export const DrawerUserLookup = ({ open, setOpen, children }) => {
|
export const DrawerUserLookup = ({ open, setOpen, children }) => {
|
||||||
|
|
||||||
const toggleDrawer = (newOpen: boolean) => () => {
|
const toggleDrawer = (newOpen: boolean) => () => {
|
||||||
setOpen(newOpen);
|
setOpen(newOpen);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<Drawer disableEnforceFocus hideBackdrop={true} open={open} onClose={toggleDrawer(false)}>
|
<Drawer
|
||||||
<Box sx={{ width: '70vw', height: '100%', maxWidth: '1000px' }} role="presentation">
|
disableEnforceFocus
|
||||||
|
hideBackdrop={true}
|
||||||
|
open={open}
|
||||||
|
onClose={toggleDrawer(false)}
|
||||||
|
>
|
||||||
|
<Box
|
||||||
|
sx={{ width: '70vw', height: '100%', maxWidth: '1000px' }}
|
||||||
|
role="presentation"
|
||||||
|
>
|
||||||
{children}
|
{children}
|
||||||
</Box>
|
</Box>
|
||||||
</Drawer>
|
</Drawer>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user