From e073dec0cdb60bb0cba3ac350bc0edb4c032347c Mon Sep 17 00:00:00 2001 From: raboid Date: Mon, 7 Jan 2019 17:21:23 -0500 Subject: [PATCH] Create ColorPicker component --- components/ColorPicker.js | 48 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 components/ColorPicker.js diff --git a/components/ColorPicker.js b/components/ColorPicker.js new file mode 100644 index 0000000..542bd2f --- /dev/null +++ b/components/ColorPicker.js @@ -0,0 +1,48 @@ +import React from 'react' +import { SketchPicker } from 'react-color' + +import { COLORS } from '../lib/constants' + +const pickerStyle = { + picker: { + backgroundColor: COLORS.BLACK, + padding: '8px 8px 0', + margin: '0 auto 1px', + flex: '1 0 200px' + } +} + +const ColorPicker = ({ onChange = () => {}, color, presets }) => ( + + + + +) + +export default ColorPicker