feat: locking group with bill request
This commit is contained in:
@@ -69,6 +69,9 @@ const DealSummaryCard: FC<Props> = ({ dealSummary, color }) => {
|
||||
const isPaid = () => {
|
||||
return dealSummary.billRequest?.paid || dealSummary.group?.billRequest?.paid;
|
||||
}
|
||||
const isLockedInsideGroup = () => {
|
||||
return dealSummary.group && !dealSummary.group.billRequest;
|
||||
}
|
||||
return (
|
||||
<Indicator
|
||||
position={"top-end"}
|
||||
@@ -80,7 +83,7 @@ const DealSummaryCard: FC<Props> = ({ dealSummary, color }) => {
|
||||
|
||||
<div
|
||||
onContextMenu={showContextMenu([
|
||||
...dealSummary.group ? [{
|
||||
...isLockedInsideGroup() ? [{
|
||||
key: "removeFromGroup",
|
||||
onClick: () => onDeleteFromGroup(dealSummary),
|
||||
title: "Убрать из группы",
|
||||
|
||||
Reference in New Issue
Block a user