-
-
Notifications
You must be signed in to change notification settings - Fork 168
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* design-library: Add task-deadline-drawer * task-deadline-form, task: Use task-deadline-drawer * translations: Add clear deadline * task, task-deadline-form: Readjust stylings for btn and label
- Loading branch information
Showing
7 changed files
with
185 additions
and
85 deletions.
There are no files selected for viewing
42 changes: 42 additions & 0 deletions
42
...end/src/components/design-library/templates/task-deadline-drawer/task-deadline-drawer.tsx
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,42 @@ | ||
import React from 'react' | ||
import Drawer from '../../molecules/drawer/drawer' | ||
import TaskDeadlineForm from '../../../task/task-deadline-form' | ||
|
||
type TaskDeadlineDrawerProps = { | ||
open: boolean | ||
onClose: () => void | ||
taskId: number | ||
task: any | ||
onUpdate: (task: any) => void | ||
classes?: any | ||
} | ||
|
||
const TaskDeadlineDrawer = ({ | ||
open, | ||
onClose, | ||
taskId, | ||
task, | ||
onUpdate, | ||
classes | ||
}: TaskDeadlineDrawerProps) => { | ||
return ( | ||
<Drawer | ||
open={open} | ||
onClose={onClose} | ||
title="Set task deadline" | ||
> | ||
<TaskDeadlineForm | ||
match={{ params: { id: taskId } }} | ||
classes={classes} | ||
open={open} | ||
task={task} | ||
updateTask={(task) => { | ||
onUpdate(task) | ||
onClose() | ||
}} | ||
/> | ||
</Drawer> | ||
) | ||
} | ||
|
||
export default TaskDeadlineDrawer |
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