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:
parent
2f2e6da54e
commit
5089db48ba
1 changed files with 9 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue