diff --git a/src/views/ChoresOverview.jsx b/src/views/ChoresOverview.jsx index a4d77da..5f9ca65 100644 --- a/src/views/ChoresOverview.jsx +++ b/src/views/ChoresOverview.jsx @@ -22,10 +22,10 @@ import { Tooltip, Typography, } from '@mui/joy' - import moment from 'moment' import { useEffect, useState } from 'react' import { useNavigate } from 'react-router-dom' + import { GetAllUsers, GetChores, MarkChoreComplete } from '../utils/Fetcher' import DateModal from './Modals/Inputs/DateModal' // import moment from 'moment' @@ -330,7 +330,7 @@ const ChoresOverview = () => { response.json().then(data => { const newChore = data.res const newChores = [...chores] - const index = newChores.findIndex(c => c.id === chore.id) + const index = newChores.findIndex(c => c.id === choreId) newChores[index] = newChore setChores(newChores) setFilteredChores(newChores) diff --git a/src/views/Modals/HistoryDetailModal.jsx b/src/views/Modals/HistoryDetailModal.jsx index 6fc7c3c..c1678d1 100644 --- a/src/views/Modals/HistoryDetailModal.jsx +++ b/src/views/Modals/HistoryDetailModal.jsx @@ -16,6 +16,7 @@ import { Avatar, Box, Button, Chip, Divider, Stack, Typography } from '@mui/joy' import moment from 'moment' import { useTranslation } from 'react-i18next' import { useNavigate } from 'react-router-dom' + import ModalActions from '../../components/common/ModalActions' import { useLocalization } from '../../contexts/LocalizationContext' import { useResponsiveModal } from '../../hooks/useResponsiveModal' @@ -44,7 +45,7 @@ const STATUS_CONFIG = { 6: { labelKey: 'status.rescheduled', color: 'warning', icon: }, } -const DetailRow = ({ icon, label, value, children }) => ( +const DetailRow = ({ children, icon, label, value }) => ( {
Summary - - {t('summaryOfChores')} - + {t('summaryOfChores')}
diff --git a/src/views/components/AddTaskModal.jsx b/src/views/components/AddTaskModal.jsx index a59bef1..8c23ce6 100644 --- a/src/views/components/AddTaskModal.jsx +++ b/src/views/components/AddTaskModal.jsx @@ -1181,7 +1181,10 @@ const TaskInput = ({ initialMode, isModalOpen, onChoreUpdate, onClose }) => { {[DEFAULT_PROJECT, ...projects].map(project => { const ProjectIcon = getIconComponent(project.icon) diff --git a/src/views/components/AdvancedOptionsSection.jsx b/src/views/components/AdvancedOptionsSection.jsx index e31b019..4bf4734 100644 --- a/src/views/components/AdvancedOptionsSection.jsx +++ b/src/views/components/AdvancedOptionsSection.jsx @@ -312,28 +312,6 @@ const AdvancedOptionsSection = ({ /> - - -1 ? deadlineOffset : ''} - onChange={e => { - const v = parseInt(e.target.value) - onDeadlineOffsetChange(isNaN(v) ? -1 : Math.max(0, v)) - }} - endDecorator={ - - hrs - - } - sx={{ width: 96 }} - slotProps={{ input: { min: 0 } }} - /> - ) : (