Skip to content

Commit

Permalink
Make use of unused 'complete' props for closing menu (#435)
Browse files Browse the repository at this point in the history
  • Loading branch information
guergana authored Jun 24, 2024
1 parent 9153200 commit f6e5d06
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions client/components/Application/Buttons/Add.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,13 @@ import UploadFileRounded from '@mui/icons-material/UploadFileRounded'
import { useStore } from '../store'

export default function AddButton() {
const fileEvent = useStore((state) => state.fileEvent)
return (
<DropdownButton
label="Add"
variant="text"
icon={<AddBoxIcon fontSize="small" sx={{ mr: 1 }} />}
complete={fileEvent ? false : true}
>
<AddLocalFileButton />
<AddRemoteFileButton />
Expand Down

0 comments on commit f6e5d06

Please sign in to comment.