Implemented issue create modal, further polish

This commit is contained in:
ireic
2019-12-23 00:30:00 +01:00
parent 6809ec494a
commit 4941261251
67 changed files with 684 additions and 237 deletions

View File

@@ -17,7 +17,7 @@ import {
const propTypes = {
className: PropTypes.string,
variant: PropTypes.oneOf(['border', 'empty']),
variant: PropTypes.oneOf(['normal', 'empty']),
dropdownWidth: PropTypes.number,
value: PropTypes.oneOfType([PropTypes.array, PropTypes.string, PropTypes.number]),
defaultValue: PropTypes.any,
@@ -33,7 +33,7 @@ const propTypes = {
const defaultProps = {
className: undefined,
variant: 'empty',
variant: 'normal',
dropdownWidth: undefined,
value: undefined,
defaultValue: undefined,
@@ -134,7 +134,10 @@ const Select = ({
<ValueMulti variant={variant}>
{value.map(optionValue =>
propsRenderValue ? (
propsRenderValue({ value: optionValue, removeOptionValue })
propsRenderValue({
value: optionValue,
removeOptionValue: () => removeOptionValue(optionValue),
})
) : (
<ValueMultiItem key={optionValue} onClick={() => removeOptionValue(optionValue)}>
{getOptionLabel(optionValue)}