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>
<SettingsDialog />
<DonateDialog />
<AboutDialog />
<ListItem button key="Close server" onClick={() => fetch(shutdownHost())}>
<ListItemIcon>

View File

@@ -21,9 +21,9 @@ export default function DonateDialog() {
const [snakeOpen, setSnakeOpen] = React.useState(true)
// NOT USED FOR NOW
// const handleClickOpen = () => {
// setOpen(true)
// }
const handleClickOpen = () => {
setOpen(true)
}
const handleClose = () => {
setOpen(false)
}
@@ -31,12 +31,12 @@ export default function DonateDialog() {
return (
<div>
{/* !!!!!!!!!!! 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>
<CreditCardIcon />
</ListItemIcon>
<ListItemText primary="Donate" />
</ListItem> */}
</ListItem>
{/* !!!!!!!!!!!!!!!!!!!! */}
<Dialog open={open} onClose={handleClose} aria-labelledby="form-dialog-title" fullWidth>