Sha256: 72f7b24bd313f8ea7b1b15e207bfbb41c709d557cb9e15dad058c1fce6b08599
Contents?: true
Size: 876 Bytes
Versions: 231
Compression:
Stored size: 876 Bytes
Contents
/* @flow */ import React from 'react' import { components } from 'react-select' import User from '../../pb_user/_user' const Option = (props: any) => { const { imageUrl, } = props.data const { valueComponent } = props.selectProps return ( <components.Option {...props}> <div> <Choose> <When condition={!valueComponent && imageUrl}> <User align="left" avatarUrl={imageUrl} dark={props.selectProps.dark} name={props.label} orientation="horizontal" /> </When> <When condition={valueComponent}> { valueComponent(props.data) } </When> <Otherwise> {props.label} </Otherwise> </Choose> </div> </components.Option> ) } export default Option
Version data entries
231 entries across 231 versions & 1 rubygems