feat: start adding queues page

This commit is contained in:
canove
2021-01-10 16:18:23 -03:00
parent e34305b976
commit e64a77513f
14 changed files with 594 additions and 19 deletions

View File

@@ -0,0 +1,25 @@
import React, { useState } from "react";
import { GithubPicker } from "react-color";
const ColorPicker = ({ onChange, currentColor }) => {
const [color, setColor] = useState(currentColor);
const handleChange = color => {
setColor(color.hex);
};
return (
<div>
<GithubPicker
width={"100%"}
triangle="hide"
color={color}
onChange={handleChange}
onChangeComplete={color => onChange(color.hex)}
/>
</div>
);
};
export default ColorPicker;