Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
@skava/ui-presets / src / presets / DarkSelectDropDown / DarkSelectDropDown.tsx
Size: Mime:
import React from 'react'
import { list as options } from './fixture'
import { DarkSelectDropDownProps } from './typings'
import { DarkSelectDropDownStyle, StyledMaterialIcon } from './styled'

/**
 * @fixme @invalid @todo this belong in elemnts
 *
 * Updating the arrow icon
 */
const renderArrowIcon = () => <StyledMaterialIcon type="arrow_drop_down" />

class DarkSelectDropDown extends React.Component<DarkSelectDropDownProps> {
  static defaultProps = {
    className: '',
    options,
  }
  render() {
    const { className } = this.props
    return (
      <DarkSelectDropDownStyle
        className={className}
        renderActiveAfterText={renderArrowIcon}
        {...this.props}
      />
    )
  }
}

export { DarkSelectDropDown }
export default DarkSelectDropDown