chore: fix upload btn behaior in mobile view
This commit is contained in:
parent
fa7a6e85f4
commit
8167c5d05f
@ -1,4 +1,4 @@
|
||||
import { Add, CalendarMonth, Description, Upload } from '@mui/icons-material'
|
||||
import { CalendarMonth, Description, Upload } from '@mui/icons-material'
|
||||
import { Box, Button, Tooltip, Typography } from '@mui/material'
|
||||
import JSZip from 'jszip'
|
||||
import { Event, kinds, verifyEvent } from 'nostr-tools'
|
||||
@ -110,13 +110,6 @@ export const HomePage = () => {
|
||||
>
|
||||
Upload
|
||||
</Button>
|
||||
<Button
|
||||
variant="contained"
|
||||
startIcon={<Add />}
|
||||
onClick={() => navigate(appPrivateRoutes.create)}
|
||||
>
|
||||
Create
|
||||
</Button>
|
||||
</Box>
|
||||
{/* This is for mobile view */}
|
||||
<Box
|
||||
@ -129,21 +122,10 @@ export const HomePage = () => {
|
||||
}}
|
||||
>
|
||||
<Tooltip title="Upload" arrow>
|
||||
<Button
|
||||
variant="outlined"
|
||||
onClick={() => navigate(appPrivateRoutes.sign)}
|
||||
>
|
||||
<Button variant="outlined" onClick={handleUploadClick}>
|
||||
<Upload />
|
||||
</Button>
|
||||
</Tooltip>
|
||||
<Tooltip title="Create" arrow>
|
||||
<Button
|
||||
variant="contained"
|
||||
onClick={() => navigate(appPrivateRoutes.create)}
|
||||
>
|
||||
<Add />
|
||||
</Button>
|
||||
</Tooltip>
|
||||
</Box>
|
||||
</Box>
|
||||
<Box className={styles.submissions}>
|
||||
|
Loading…
Reference in New Issue
Block a user