feat: billing for groups of deals
This commit is contained in:
@@ -66,6 +66,9 @@ const DealSummaryCard: FC<Props> = ({ dealSummary, color }) => {
|
||||
}
|
||||
return { disabled: true };
|
||||
};
|
||||
const isPaid = () => {
|
||||
return dealSummary.billRequest?.paid || dealSummary.group?.billRequest?.paid;
|
||||
}
|
||||
return (
|
||||
<Indicator
|
||||
position={"top-end"}
|
||||
@@ -194,15 +197,12 @@ const DealSummaryCard: FC<Props> = ({ dealSummary, color }) => {
|
||||
</Popover>
|
||||
)}
|
||||
</CopyButton>
|
||||
{dealSummary.billRequest?.paid && (
|
||||
{isPaid() && (
|
||||
<Tooltip label={"Оплачен"}>
|
||||
<ThemeIcon variant={"transparent"}>
|
||||
<IconCheck />
|
||||
</ThemeIcon>
|
||||
|
||||
|
||||
</Tooltip>
|
||||
|
||||
)}
|
||||
</Flex>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user