fix: clean up unused imports and simplify component structure in AddTaskModal

This commit is contained in:
Mo Tarbin
2026-08-10 00:53:40 -04:00
parent 309fd32d50
commit 4c6e244069
2 changed files with 5 additions and 11 deletions

View File

@@ -38,7 +38,6 @@ import {
} from './CustomParsers' } from './CustomParsers'
import DueDatePickerField from './DueDatePickerField' import DueDatePickerField from './DueDatePickerField'
import LabelsPickerField from './LabelsPickerField' import LabelsPickerField from './LabelsPickerField'
import LearnMoreButton from './LearnMore'
import NotificationPickerField from './NotificationPickerField' import NotificationPickerField from './NotificationPickerField'
import PriorityPickerField from './PriorityPickerField' import PriorityPickerField from './PriorityPickerField'
import RepeatPickerField from './RepeatPickerField' import RepeatPickerField from './RepeatPickerField'
@@ -1183,8 +1182,8 @@ const TaskInput = ({ initialMode, isModalOpen, onChoreUpdate, onClose }) => {
> >
{!showScan && !showVoice && ( {!showScan && !showVoice && (
<> <>
<Box> <Box sx={{ mt: 1 }}>
<Box {/* <Box
sx={{ sx={{
display: 'flex', display: 'flex',
flexDirection: 'row', flexDirection: 'row',
@@ -1235,7 +1234,7 @@ const TaskInput = ({ initialMode, isModalOpen, onChoreUpdate, onClose }) => {
</> </>
} }
/> />
</Box> </Box> */}
<SmartTaskTitleInput <SmartTaskTitleInput
autoFocus autoFocus
@@ -1396,9 +1395,7 @@ const TaskInput = ({ initialMode, isModalOpen, onChoreUpdate, onClose }) => {
}} }}
> >
<Add sx={{ fontSize: 20 }} /> <Add sx={{ fontSize: 20 }} />
<Typography level='body-sm' sx={{ color: 'inherit' }}> <Typography level='body-sm'>Description</Typography>
Description
</Typography>
</Button> </Button>
)} )}
{!hasSubTasks && ( {!hasSubTasks && (
@@ -1421,9 +1418,7 @@ const TaskInput = ({ initialMode, isModalOpen, onChoreUpdate, onClose }) => {
}} }}
> >
<Add sx={{ fontSize: 20 }} /> <Add sx={{ fontSize: 20 }} />
<Typography level='body-sm' sx={{ color: 'inherit' }}> <Typography level='body-sm'>Subtasks</Typography>
Subtasks
</Typography>
</Button> </Button>
)} )}
<AdvancedOptionsTrigger <AdvancedOptionsTrigger

View File

@@ -90,7 +90,6 @@ export const AdvancedOptionsTrigger = ({
<Typography <Typography
level='body-sm' level='body-sm'
sx={{ sx={{
color: 'inherit',
whiteSpace: 'nowrap', whiteSpace: 'nowrap',
overflow: 'hidden', overflow: 'hidden',
textOverflow: 'ellipsis', textOverflow: 'ellipsis',