-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
/tasks is now /tasks/day, this way its easier to implement the same navigation that we have for week and month, also the loading state for it was added.
- Loading branch information
1 parent
51da043
commit 03fc47c
Showing
14 changed files
with
92 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
'use client' | ||
|
||
import Box from '@mui/joy/Box' | ||
|
||
import Divider from '@mui/joy/Divider' | ||
import { Skeleton } from '@mui/joy' | ||
|
||
import { CreateTask } from '../../components/CreateTask' | ||
import { CreateTaskFormProvider } from './providers/CreateTaskFormProvider' | ||
|
||
export default function Loading() { | ||
return ( | ||
<Box | ||
sx={{ | ||
display: 'grid', | ||
gridTemplateAreas: { | ||
xs: "'divider-1 divider-1''select-template start-timer''divider-2 divider-2''create-task-form create-task-form''task-list task-list'", | ||
sm: "'divider-1 divider-1''select-template start-timer''divider-2 divider-2''create-task-form task-list'" | ||
}, | ||
gridTemplateColumns: { | ||
xs: '1fr', | ||
sm: '558px 558px' | ||
}, | ||
columnGap: '30px', | ||
rowGap: '16px', | ||
margin: '0 auto', | ||
maxWidth: '1146px', | ||
width: '100%' | ||
}} | ||
> | ||
<Divider sx={{ gridArea: 'divider-1' }} /> | ||
|
||
<CreateTaskFormProvider> | ||
<CreateTask projects={[]} taskTypes={[]} templates={[]} /> | ||
|
||
<Divider sx={{ gridArea: 'divider-2' }} /> | ||
|
||
<Box sx={{ gridArea: 'task-list', position: 'relative' }}> | ||
<Skeleton width="100%" height="96px" /> | ||
</Box> | ||
</CreateTaskFormProvider> | ||
</Box> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters