diff options
author | Mo Tarbin <mhed.t91@gmail.com> | 2024-09-06 01:22:55 -0400 |
---|---|---|
committer | Mo Tarbin <mhed.t91@gmail.com> | 2024-09-06 01:22:55 -0400 |
commit | 2d2cf6d378d92aac31b3b09506bc6310466a0b07 (patch) | |
tree | a06c0135171256e9f28512dc840976615e802675 /src/views/Modals | |
parent | c35801d00fef528a87d226ed9e48cd3ba7856c50 (diff) | |
parent | 240633177cc646e6662f27e1334b5e83d962170d (diff) | |
download | donetick-frontend-2d2cf6d378d92aac31b3b09506bc6310466a0b07.tar.gz donetick-frontend-2d2cf6d378d92aac31b3b09506bc6310466a0b07.tar.bz2 donetick-frontend-2d2cf6d378d92aac31b3b09506bc6310466a0b07.zip |
- Add Cookie Permission component
- Add Filter button instead of chips in mychores view
- show except days instead of showing evenything when days.length>4
Diffstat (limited to 'src/views/Modals')
-rw-r--r-- | src/views/Modals/Inputs/SelectModal.jsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/views/Modals/Inputs/SelectModal.jsx b/src/views/Modals/Inputs/SelectModal.jsx index 61e7ae9..f879bf0 100644 --- a/src/views/Modals/Inputs/SelectModal.jsx +++ b/src/views/Modals/Inputs/SelectModal.jsx @@ -9,7 +9,7 @@ import { } from '@mui/joy' import React from 'react' -function SelectModal({ isOpen, onClose, onSave, options, title, displayKey }) { +function SelectModal({ isOpen, onClose, onSave, options, title, displayKey,placeholder }) { const [selected, setSelected] = React.useState(null) const handleSave = () => { onSave(options.find(item => item.id === selected)) @@ -20,7 +20,7 @@ function SelectModal({ isOpen, onClose, onSave, options, title, displayKey }) { <Modal open={isOpen} onClose={onClose}> <ModalDialog> <Typography variant='h4'>{title}</Typography> - <Select> + <Select placeholder={placeholder}> {options.map((item, index) => ( <Option value={item.id} |