Sha256: 65dd8b6df09ad5d2f870511b001ff1cbf7e1fd3732607924fef809878789825e
Contents?: true
Size: 612 Bytes
Versions: 17
Compression:
Stored size: 612 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}> <Choose> <When condition={imageUrl}> <User align="left" avatarUrl={imageUrl} name={label} orientation="horizontal" /> </When> <When condition={!imageUrl}> {label} </When> </Choose> </components.Option> ) } export default Option
Version data entries
17 entries across 17 versions & 1 rubygems