Add task creation form. (#9)
Reviewed-on: #9 Co-authored-by: Drew Galbraith <drew@tiramisu.one> Co-committed-by: Drew Galbraith <drew@tiramisu.one>
This commit is contained in:
parent
a683a071d1
commit
b0916990fb
6 changed files with 286 additions and 16 deletions
20
frontend/app/routes/task.new.tsx
Normal file
20
frontend/app/routes/task.new.tsx
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
import type { Route } from './+types/task.new'
|
||||
import { Container, Box } from '@mui/material'
|
||||
import { TaskForm } from '~/components/TaskForm'
|
||||
|
||||
export function meta(_: Route.MetaArgs) {
|
||||
return [
|
||||
{ title: "Captain's Log - New Task" },
|
||||
{ name: 'description', content: 'Create a new task' },
|
||||
]
|
||||
}
|
||||
|
||||
export default function NewTask() {
|
||||
return (
|
||||
<Container maxWidth="md">
|
||||
<Box sx={{ py: 4 }}>
|
||||
<TaskForm />
|
||||
</Box>
|
||||
</Container>
|
||||
)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue