aboutsummaryrefslogtreecommitdiffstats
path: root/src/views/Modals
diff options
context:
space:
mode:
authorLibravatar Mo Tarbin <mhed.t91@gmail.com>2024-08-10 02:08:49 -0400
committerLibravatar Mo Tarbin <mhed.t91@gmail.com>2024-08-10 02:08:49 -0400
commite9745683748ac5ecfdf704607441a3204d8c5516 (patch)
tree34004796c608c7c287402582fc23e2a0c8ba1e86 /src/views/Modals
parentb5f17dc7a6f706a302d01fc129f5bf7edf6d8471 (diff)
downloaddonetick-frontend-e9745683748ac5ecfdf704607441a3204d8c5516.tar.gz
donetick-frontend-e9745683748ac5ecfdf704607441a3204d8c5516.tar.bz2
donetick-frontend-e9745683748ac5ecfdf704607441a3204d8c5516.zip
Update Fetcher.jsx to include UpdateChoreAssignee function and ChoreCard.jsx to handle assignee change
Diffstat (limited to 'src/views/Modals')
-rw-r--r--src/views/Modals/Inputs/SelectModal.jsx4
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}