1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/web/ synced 2025-03-09 00:00:01 +01:00

add propTypes to ColorPicker component

This commit is contained in:
Sonja Happ 2021-05-04 11:45:30 +02:00
parent 2f2e6da54e
commit 5089db48ba

View file

@ -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;