Skip to content

Commit

Permalink
bg color changed based on the value
Browse files Browse the repository at this point in the history
  • Loading branch information
zybk23 committed Jan 30, 2024
1 parent 90478de commit 85812b3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ui/src/pages/index.page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ export default function Home() {
<button
style={{ color: "#fff" }}
onClick={handleSendContract}
className="w-full h-[56px] mt-[24px] rounded-[16px] text-sm font-lexend font-normal bg-[#8BB7A2] flex items-center justify-center"
className={`w-full h-[56px] mt-[24px] rounded-[16px] text-sm font-lexend font-normal ${
amount > 0 ? "bg-[#619079]" : "bg-[#8BB7A2]"
} flex items-center justify-center`}
>
Confirm
</button>
Expand Down

0 comments on commit 85812b3

Please sign in to comment.