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

View File

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