add donate

This commit is contained in:
YouROK
2021-05-24 20:08:10 +03:00
parent 549ada2442
commit 225f7070f7
2 changed files with 6 additions and 5 deletions

View File

@@ -114,6 +114,7 @@ export default function MiniDrawer() {
<List> <List>
<SettingsDialog /> <SettingsDialog />
<DonateDialog />
<AboutDialog /> <AboutDialog />
<ListItem button key="Close server" onClick={() => fetch(shutdownHost())}> <ListItem button key="Close server" onClick={() => fetch(shutdownHost())}>
<ListItemIcon> <ListItemIcon>

View File

@@ -21,9 +21,9 @@ export default function DonateDialog() {
const [snakeOpen, setSnakeOpen] = React.useState(true) const [snakeOpen, setSnakeOpen] = React.useState(true)
// NOT USED FOR NOW // NOT USED FOR NOW
// const handleClickOpen = () => { const handleClickOpen = () => {
// setOpen(true) setOpen(true)
// } }
const handleClose = () => { const handleClose = () => {
setOpen(false) setOpen(false)
} }
@@ -31,12 +31,12 @@ export default function DonateDialog() {
return ( return (
<div> <div>
{/* !!!!!!!!!!! Should be removed or moved to sidebar because it is not visible. It is hiddent behind header */} {/* !!!!!!!!!!! Should be removed or moved to sidebar because it is not visible. It is hiddent behind header */}
{/* <ListItem button key="Donate" onClick={handleClickOpen}> <ListItem button key="Donate" onClick={handleClickOpen}>
<ListItemIcon> <ListItemIcon>
<CreditCardIcon /> <CreditCardIcon />
</ListItemIcon> </ListItemIcon>
<ListItemText primary="Donate" /> <ListItemText primary="Donate" />
</ListItem> */} </ListItem>
{/* !!!!!!!!!!!!!!!!!!!! */} {/* !!!!!!!!!!!!!!!!!!!! */}
<Dialog open={open} onClose={handleClose} aria-labelledby="form-dialog-title" fullWidth> <Dialog open={open} onClose={handleClose} aria-labelledby="form-dialog-title" fullWidth>