mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-20 23:00:34 +00:00
feat(EstimatesList): optimize status tags.
This commit is contained in:
@@ -25,24 +25,24 @@ import { safeCallback } from 'utils';
|
|||||||
export const statusAccessor = (row) => (
|
export const statusAccessor = (row) => (
|
||||||
<Choose>
|
<Choose>
|
||||||
<Choose.When condition={row.is_delivered && row.is_approved}>
|
<Choose.When condition={row.is_delivered && row.is_approved}>
|
||||||
<Tag minimal={true} intent={Intent.SUCCESS}>
|
<Tag minimal={true} intent={Intent.SUCCESS} round={true}>
|
||||||
<T id={'approved'} />
|
<T id={'approved'} />
|
||||||
</Tag>
|
</Tag>
|
||||||
</Choose.When>
|
</Choose.When>
|
||||||
<Choose.When condition={row.is_delivered && row.is_rejected}>
|
<Choose.When condition={row.is_delivered && row.is_rejected}>
|
||||||
<Tag minimal={true} intent={Intent.DANGER}>
|
<Tag minimal={true} intent={Intent.DANGER} round={true}>
|
||||||
<T id={'rejected'} />
|
<T id={'rejected'} />
|
||||||
</Tag>
|
</Tag>
|
||||||
</Choose.When>
|
</Choose.When>
|
||||||
<Choose.When
|
<Choose.When
|
||||||
condition={row.is_delivered && !row.is_rejected && !row.is_approved}
|
condition={row.is_delivered && !row.is_rejected && !row.is_approved}
|
||||||
>
|
>
|
||||||
<Tag minimal={true} intent={Intent.SUCCESS}>
|
<Tag minimal={true} intent={Intent.SUCCESS} round={true}>
|
||||||
<T id={'delivered'} />
|
<T id={'delivered'} />
|
||||||
</Tag>
|
</Tag>
|
||||||
</Choose.When>
|
</Choose.When>
|
||||||
<Choose.Otherwise>
|
<Choose.Otherwise>
|
||||||
<Tag minimal={true}>
|
<Tag minimal={true} round={true}>
|
||||||
<T id={'draft'} />
|
<T id={'draft'} />
|
||||||
</Tag>
|
</Tag>
|
||||||
</Choose.Otherwise>
|
</Choose.Otherwise>
|
||||||
|
|||||||
Reference in New Issue
Block a user