Added caret to dropdown in SortBlock container
• Added: - caret to dropdown in SortBlock container
This commit is contained in:
parent
df2d24e081
commit
f4b25eb2cd
@ -1,8 +1,9 @@
|
|||||||
import { Fragment } from 'react'
|
import { Fragment } from 'react'
|
||||||
import { defineMessages, injectIntl } from 'react-intl'
|
import { defineMessages, injectIntl } from 'react-intl'
|
||||||
import Text from '../components/text'
|
|
||||||
import Button from '../components/button'
|
import Button from '../components/button'
|
||||||
import DotTextSeperator from '../components/dot_text_seperator'
|
import DotTextSeperator from '../components/dot_text_seperator'
|
||||||
|
import Icon from '../components/icon'
|
||||||
|
import Text from '../components/text'
|
||||||
|
|
||||||
const messages = defineMessages({
|
const messages = defineMessages({
|
||||||
sortBy: { id: 'comment_sort.title', defaultMessage: 'Sort by' },
|
sortBy: { id: 'comment_sort.title', defaultMessage: 'Sort by' },
|
||||||
@ -52,31 +53,35 @@ class SortBlock extends PureComponent {
|
|||||||
isText
|
isText
|
||||||
backgroundColor='none'
|
backgroundColor='none'
|
||||||
color='secondary'
|
color='secondary'
|
||||||
className={_s.ml5}
|
className={[_s.ml5, _s.flexRow, _s.alignItemsCenter].join(' ')}
|
||||||
buttonRef={this.setValueBtnRef}
|
buttonRef={this.setValueBtnRef}
|
||||||
onClick={this.handleOnClickValue}
|
onClick={this.handleOnClickValue}
|
||||||
>
|
>
|
||||||
<Text color='inherit' weight='medium' size='small'>
|
<Text color='inherit' weight='medium' size='small'>
|
||||||
{value}
|
{value}
|
||||||
</Text>
|
</Text>
|
||||||
|
<Icon id='caret-down' size='6px' className={[_s.fillSecondary, _s.ml5].join(' ')} />
|
||||||
</Button>
|
</Button>
|
||||||
|
|
||||||
{
|
{
|
||||||
!!subValue &&
|
!!subValue &&
|
||||||
<Fragment>
|
<Fragment>
|
||||||
|
<div className={[_s.default, _s.px5].join(' ')}>
|
||||||
<DotTextSeperator />
|
<DotTextSeperator />
|
||||||
|
</div>
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
isText
|
isText
|
||||||
backgroundColor='none'
|
backgroundColor='none'
|
||||||
color='secondary'
|
color='secondary'
|
||||||
className={_s.ml5}
|
className={[_s.ml5, _s.flexRow, _s.alignItemsCenter].join(' ')}
|
||||||
buttonRef={this.setSubValueBtnRef}
|
buttonRef={this.setSubValueBtnRef}
|
||||||
onClick={this.handleOnClickSubValue}
|
onClick={this.handleOnClickSubValue}
|
||||||
>
|
>
|
||||||
<Text color='inherit' weight='medium' size='small'>
|
<Text color='inherit' weight='medium' size='small'>
|
||||||
{subValue}
|
{subValue}
|
||||||
</Text>
|
</Text>
|
||||||
|
<Icon id='caret-down' size='6px' className={[_s.fillSecondary, _s.ml5].join(' ')} />
|
||||||
</Button>
|
</Button>
|
||||||
</Fragment>
|
</Fragment>
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user