mirror of
https://github.com/Sea-Haven-Industries/shoc-frontend-new.git
synced 2026-10-04 12:32:06 +00:00
style(uplifts): apply prettier to the uplift detail modal
This commit is contained in:
parent
4bffdac175
commit
dd1b029124
1 changed files with 3 additions and 15 deletions
|
|
@ -200,11 +200,7 @@ function BreakdownRow({
|
|||
variant={strong ? "body" : "description"}
|
||||
className={strong ? "font-medium" : undefined}
|
||||
>
|
||||
{value != null
|
||||
? formatUpliftMoney(value)
|
||||
: unavailable
|
||||
? UNAVAILABLE_LABEL
|
||||
: "—"}
|
||||
{value != null ? formatUpliftMoney(value) : unavailable ? UNAVAILABLE_LABEL : "—"}
|
||||
</Text>
|
||||
</Box>
|
||||
);
|
||||
|
|
@ -273,11 +269,7 @@ function UpliftModalActions({
|
|||
onReject: (row: UpliftQueueItem) => void;
|
||||
onRevoke: (row: UpliftQueueItem) => void;
|
||||
}) {
|
||||
const revokeTooltip = !canRevoke
|
||||
? ADMIN_ONLY_REVOKE_TOOLTIP
|
||||
: closed
|
||||
? CLOSED_WO_TOOLTIP
|
||||
: "";
|
||||
const revokeTooltip = !canRevoke ? ADMIN_ONLY_REVOKE_TOOLTIP : closed ? CLOSED_WO_TOOLTIP : "";
|
||||
return (
|
||||
<>
|
||||
{item.status === "Pending" && (
|
||||
|
|
@ -382,11 +374,7 @@ export function UpliftDetailModal({
|
|||
</DialogTitle>
|
||||
<DialogContent>
|
||||
<Box sx={{ display: "grid", gap: 3 }}>
|
||||
<WorkOrderSection
|
||||
item={item}
|
||||
info={info}
|
||||
unavailable={boardDetail.isError}
|
||||
/>
|
||||
<WorkOrderSection item={item} info={info} unavailable={boardDetail.isError} />
|
||||
<RequestSection item={item} onOpenAttachment={onOpenAttachment} />
|
||||
<DetailSection title="Approved on work order">
|
||||
<ApprovedOnWoBreakdown
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue