mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-21 23:46:18 -05:00
Changing zim label color when results are found, this helps the user find their results faster.
This commit is contained in:
parent
4c647241d6
commit
c8e93f84aa
1 changed files with 3 additions and 1 deletions
|
|
@ -259,6 +259,8 @@ const ZimAccordion = ({data, index, activeIndex, onClick, searchStr, activeTags}
|
|||
<Paginator activePage={pages.activePage} totalPages={pages.totalPages} onPageChange={pages.setPage}/>
|
||||
</center>;
|
||||
|
||||
const label = <Label color={estimate > 0 ? 'violet' : undefined}>{normalizeEstimate(estimate)}</Label>;
|
||||
|
||||
return <React.Fragment>
|
||||
<AccordionTitle
|
||||
index={index}
|
||||
|
|
@ -266,7 +268,7 @@ const ZimAccordion = ({data, index, activeIndex, onClick, searchStr, activeTags}
|
|||
onClick={() => onClick(index, activeIndex)}
|
||||
>
|
||||
<Header as='h3'>
|
||||
<Icon name='dropdown'/> {title} <Label>{normalizeEstimate(estimate)}</Label>
|
||||
<Icon name='dropdown'/> {title} {label}
|
||||
</Header>
|
||||
</AccordionTitle>
|
||||
<AccordionContent active={index === activeIndex}>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue