diff --git a/tasker-client/src/app/components/ModalNewTask/index.tsx b/tasker-client/src/app/components/ModalNewTask/index.tsx index 507f7f6..6ce89d5 100644 --- a/tasker-client/src/app/components/ModalNewTask/index.tsx +++ b/tasker-client/src/app/components/ModalNewTask/index.tsx @@ -13,7 +13,7 @@ const ModalNewTask = ({ isOpen, onClose, id = null }: Props) => { const [createTask, { isLoading }] = useCreateTaskMutation(); const [title, setTitle] = useState(""); const [description, setDescription] = useState(""); - const [status, setStatus] = useState(Status.Backlog); + const [status, setStatus] = useState(Status.ToDo); const [priority, setPriority] = useState(Priority.Backlog); const [tags, setTags] = useState(""); const [startDate, setStartDate] = useState(""); @@ -87,7 +87,7 @@ const ModalNewTask = ({ isOpen, onClose, id = null }: Props) => { } > - + diff --git a/tasker-client/src/app/components/Sidebar/index.tsx b/tasker-client/src/app/components/Sidebar/index.tsx index 8efc90e..f6ab205 100644 --- a/tasker-client/src/app/components/Sidebar/index.tsx +++ b/tasker-client/src/app/components/Sidebar/index.tsx @@ -25,11 +25,13 @@ import { usePathname } from "next/navigation"; import { setIsSidebarCollapsed } from "@/state"; import { useAppDispatch, useAppSelector } from "@/app/redux"; import Link from "next/link"; +import { useGetProjectsQuery } from "@/state/api"; const Sidebar = () => { const [showProjects, setShowProjects] = React.useState(true); const [showPriority, setShowPriority] = React.useState(true); + const { data: projects } = useGetProjectsQuery(); const dispatch = useAppDispatch(); const isSidebarCollapsed = useAppSelector( (state) => state.global.isSidebarCollapsed, @@ -77,7 +79,12 @@ const Sidebar = () => { + {showProjects && + projects?.map((project) => ( + + ))}