-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #44 from mayank1513/feat/39-custom-color
Feat/39 custom color
- Loading branch information
Showing
14 changed files
with
244 additions
and
85 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"scope": "Workspace", | ||
"tasks": { | ||
"task-MMVBTdvRS-hXujgWL4gLW": { | ||
"id": "task-MMVBTdvRS-hXujgWL4gLW", | ||
"description": "Create new tasks\n\nTask can also contain lists\n\n- list item 1\n\n- list item 2", | ||
"columnId": "column-todo" | ||
} | ||
}, | ||
"columns": [ | ||
{ | ||
"id": "column-todo", | ||
"title": "To do", | ||
"tasksIds": [ | ||
"task-MMVBTdvRS-hXujgWL4gLW" | ||
] | ||
}, | ||
{ | ||
"id": "column-doing", | ||
"title": "Doing", | ||
"tasksIds": [] | ||
}, | ||
{ | ||
"id": "column-done", | ||
"title": "Done", | ||
"tasksIds": [] | ||
} | ||
] | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { ColorPicker, useColor } from "react-color-palette"; | ||
import "react-color-palette/css"; | ||
|
||
export function ColorSelector(props: { color?: string; setColor: (color: string) => void; onClose: () => void }) { | ||
const [color, setColor] = useColor(props.color || "gray"); | ||
return ( | ||
<div className="modal"> | ||
<div className="content"> | ||
<ColorPicker hideInput={["rgb", "hsv"]} color={color} onChange={setColor} /> | ||
<button onClick={() => props.setColor(color.hex)}>Ok</button> | ||
<button onClick={props.onClose}>Cancel</button> | ||
</div> | ||
</div> | ||
); | ||
} |
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
Oops, something went wrong.