Skip to content

Commit

Permalink
fix: change date in add task (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZL-Asica authored Jan 12, 2025
1 parent acd717f commit 967b957
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion .github/workflows/firebase-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ jobs:
# 🚮 Clean up all results for comment
- name: 🚮 Clean up results
run: |
sed -i 's/\x1b\[[0-9;]*m//g' prettier-results.txt
sed -i 's/\x1b\[[0-9;]*m//g' lint-results.txt
sed -i 's/\x1b\[[0-9;]*m//g' test-results.txt
Expand Down
3 changes: 2 additions & 1 deletion src/components/Home/Calendar/AddTaskButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ interface AddTaskButtonProps {
const AddTaskButton = ({ selectedDate }: AddTaskButtonProps) => {
const addTask = useScheduleStore(state => state.addTask)

const [date, setDate] = useState(selectedDate?.format('YYYY-MM-DD') ?? '')
const [open, toggleOpen] = useToggle()
const date = selectedDate?.format('YYYY-MM-DD') ?? ''
const [title, setTitle] = useState('')
const [description, setDescription] = useState('')
const [category, setCategory] = useState<TaskCategory>('work')
Expand Down Expand Up @@ -40,6 +40,7 @@ const AddTaskButton = ({ selectedDate }: AddTaskButtonProps) => {
label="Date"
type="date"
value={date}
onChange={event_ => setDate(event_.target.value)}
slotProps={{
inputLabel: { shrink: true },
}}
Expand Down

0 comments on commit 967b957

Please sign in to comment.