diff options
Diffstat (limited to 'src/views/Modals/Inputs')
-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} |