diff --git a/frontend/src/app/tasks/DayView.tsx b/frontend/src/app/tasks/DayView.tsx index f7bdf6b45..ee3f51520 100644 --- a/frontend/src/app/tasks/DayView.tsx +++ b/frontend/src/app/tasks/DayView.tsx @@ -22,7 +22,6 @@ export const DayView = ({ projects, taskTypes, templates }: DayViewProps) => { return ( { xs: '1fr', sm: '558px 558px' }, - margin: '0 auto', - maxWidth: '1146px', columnGap: '30px', rowGap: '16px' }} diff --git a/frontend/src/app/tasks/layout.tsx b/frontend/src/app/tasks/layout.tsx new file mode 100644 index 000000000..3772914e8 --- /dev/null +++ b/frontend/src/app/tasks/layout.tsx @@ -0,0 +1,57 @@ +'use client' + +import { PropsWithChildren } from 'react' +import { Tabs, TabList, Tab, Box, Divider } from '@mui/joy' +import Link from 'next/link' +import { usePathname } from 'next/navigation' + +export default function TasksLayout({ children }: PropsWithChildren) { + const pathname = usePathname() + + return ( + + + + Day + Week + Month + + + + {children} + + ) +} + +const TimeViewTab = ({ children, path }: PropsWithChildren<{ path: string }>) => { + return ( + + + {children} + + + ) +} diff --git a/frontend/src/app/tasks/month/page.tsx b/frontend/src/app/tasks/month/page.tsx new file mode 100644 index 000000000..fecddafec --- /dev/null +++ b/frontend/src/app/tasks/month/page.tsx @@ -0,0 +1,3 @@ +export default function MonthView() { + return
Month!
+} diff --git a/frontend/src/app/tasks/week/page.tsx b/frontend/src/app/tasks/week/page.tsx new file mode 100644 index 000000000..eabd3abf4 --- /dev/null +++ b/frontend/src/app/tasks/week/page.tsx @@ -0,0 +1,3 @@ +export default async function WeekView() { + return
Week!
+}