Skip to content

Commit

Permalink
fixed payment status lost code during merge conflict (#659)
Browse files Browse the repository at this point in the history
  • Loading branch information
subru-37 authored Jan 21, 2025
1 parent 234a572 commit de91b5f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions apps/web-admin/src/components/DataDisplay.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,17 @@ export default function DataDisplay({
<StyledText>
<GoDotFill color="green" /> Open
</StyledText>
) : column.field == 'paymentStatus' ? (
<HStack align="center" position="relative" zIndex={2}>
<StyledText>{row[column.field]}</StyledText>
<Checkbox
isChecked={row[column.field] === 'yes'}
onChange={(e) => {
e.stopPropagation();
column.togglePaymentStatus(row.id, e.target.checked ? 'yes' : 'no');
}}
/>
</HStack>
) : (
// </StyledBox>
<StyledText>{row[column.field]}</StyledText>
Expand Down

0 comments on commit de91b5f

Please sign in to comment.