grumbles
This commit is contained in:
parent
43629d0fd4
commit
68cbd87bc2
@ -29,17 +29,17 @@
|
|||||||
**/
|
**/
|
||||||
|
|
||||||
import React, { PropTypes } from 'react';
|
import React, { PropTypes } from 'react';
|
||||||
import { Dropdown as DropdownUI } from 'semantic-ui-react';
|
import { Dropdown as SemanticDropdown } from 'semantic-ui-react';
|
||||||
|
|
||||||
import styles from './dropdown.css';
|
import styles from './dropdown.css';
|
||||||
|
|
||||||
export default function Dropdown ({ defaultValue, disabled, fluid, icon, name, onBlur, onChange, onClick, onClose, onFocus, options, placeholder, scrolling, search, selection, text, value }) {
|
export default function Dropdown ({ defaultValue, disabled, fullWidth, fluid, hint, icon, name, onBlur, onChange, onClick, onClose, onFocus, options, placeholder, scrolling, search, selection, text, value }) {
|
||||||
return (
|
return (
|
||||||
<DropdownUI
|
<SemanticDropdown
|
||||||
className={ styles.dropdown }
|
className={ styles.dropdown }
|
||||||
defaultValue={ defaultValue }
|
defaultValue={ defaultValue }
|
||||||
disabled={ disabled }
|
disabled={ disabled }
|
||||||
fluid={ fluid }
|
fluid={ fullWidth | fluid }
|
||||||
icon={ icon }
|
icon={ icon }
|
||||||
name={ name }
|
name={ name }
|
||||||
onBlur={ onBlur }
|
onBlur={ onBlur }
|
||||||
@ -48,7 +48,7 @@ export default function Dropdown ({ defaultValue, disabled, fluid, icon, name, o
|
|||||||
onClose={ onClose }
|
onClose={ onClose }
|
||||||
onFocus={ onFocus }
|
onFocus={ onFocus }
|
||||||
options={ options }
|
options={ options }
|
||||||
placeholder={ placeholder }
|
placeholder={ hint | placeholder }
|
||||||
scrolling={ scrolling }
|
scrolling={ scrolling }
|
||||||
search={ search }
|
search={ search }
|
||||||
selection={ selection }
|
selection={ selection }
|
||||||
@ -79,5 +79,8 @@ Dropdown.propTypes = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
Dropdown.defaultProps = {
|
Dropdown.defaultProps = {
|
||||||
disabled: false
|
disabled: false,
|
||||||
|
fluid: true,
|
||||||
|
search: true,
|
||||||
|
selection: true
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user