Removed react-css-modules
This commit is contained in:
@@ -1,20 +1,19 @@
|
||||
import React from 'react';
|
||||
import styles from './DropDown.css';
|
||||
import CSSModules from 'react-css-modules';
|
||||
import './DropDown.css';
|
||||
|
||||
export default CSSModules((props) => {
|
||||
export default props => {
|
||||
const options = props.items.map((s, i) => {
|
||||
return (
|
||||
<option styleName='Option' key={i} value={i}>{s}</option>
|
||||
<option className={'DropDownOption'} key={i} value={i}>{s}</option>
|
||||
);
|
||||
});
|
||||
|
||||
return (
|
||||
<div styleName='DropDown'>
|
||||
<select styleName='Select' disabled={props.disabled} onChange={props.changed} value={props.selected}>
|
||||
<div className={'DropDown'}>
|
||||
<select className={'DropDownSelect'} disabled={props.disabled} onChange={props.changed} value={props.selected}>
|
||||
{options}
|
||||
</select>
|
||||
</div>
|
||||
);
|
||||
|
||||
}, styles, {allowMultiple: true});
|
||||
};
|
||||
Reference in New Issue
Block a user