Skip to content

Commit

Permalink
feat: add styling and status handling for rejected state in ActionBar…
Browse files Browse the repository at this point in the history
… and globals.css
  • Loading branch information
madhurMongia committed Dec 31, 2024
1 parent f6ec16e commit cc14d44
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/[pohid]/[chain]/[request]/ActionBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ export default withClientConnected<ActionBarProps>(function ActionBar({
]);

const totalCost = BigInt(contractData.baseDeposit) + arbitrationCost;
const statusColor = colorForStatus(status, revocation, expired);
const statusColor = colorForStatus(status, revocation, expired,rejected);

return (
<div className="paper border-stroke bg-whiteBackground text-primaryText flex flex-col items-center justify-between gap-[12px] px-[24px] py-[24px] md:flex-row lg:gap-[20px]">
Expand Down
16 changes: 16 additions & 0 deletions src/app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,14 @@
color: theme("colors.dark.status.transferring");
}

.text-status-rejected {
color: theme("colors.light.status.rejected");
}

.dark .text-status-rejected {
color: theme("colors.dark.status.rejected");
}

.fill-primaryText {
fill: theme("colors.light.primaryText");
}
Expand Down Expand Up @@ -362,6 +370,14 @@
background-color: theme("colors.dark.status.transferring");
}

.bg-status-rejected {
background-color: theme("colors.light.status.rejected");
}

.dark .bg-status-rejected {
background-color: theme("colors.dark.status.rejected");
}

.btn-main {
background-color: #ff9966;
}
Expand Down

0 comments on commit cc14d44

Please sign in to comment.