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