From 5089db48ba6aae34013206491fcf888b32b600e8 Mon Sep 17 00:00:00 2001 From: Sonja Happ Date: Tue, 4 May 2021 11:45:30 +0200 Subject: [PATCH] add propTypes to ColorPicker component --- src/common/color-picker.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/common/color-picker.js b/src/common/color-picker.js index 2b23b77..775e9c7 100644 --- a/src/common/color-picker.js +++ b/src/common/color-picker.js @@ -19,6 +19,7 @@ import React from 'react'; import { Form } from 'react-bootstrap'; import { SketchPicker } from 'react-color'; import Dialog from './dialogs/dialog'; +import PropTypes from 'prop-types' class ColorPicker extends React.Component { @@ -98,4 +99,12 @@ class ColorPicker extends React.Component { } } +ColorPicker.propTypes = { + onClose: PropTypes.func, + disableOpacity: PropTypes.bool, + show: PropTypes.bool, + hexcolor: PropTypes.string, + opacity: PropTypes.number +} + export default ColorPicker;