Skip to content

Commit

Permalink
fix: Display POH status as icons (#485)
Browse files Browse the repository at this point in the history
  • Loading branch information
alainncls authored Dec 20, 2023
1 parent 2e1164c commit 2931a87
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions website/src/pages/Poh.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import { ConnectKitButton } from "connectkit";
import axios from "axios";
import { useAccount } from "wagmi";
import { Link } from "react-router-dom";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { faCheck, faXmark } from "@fortawesome/free-solid-svg-icons";

export type PohProps = {
title: string;
Expand Down Expand Up @@ -76,8 +78,12 @@ export const Poh: FunctionComponent<PohProps> = ({ title }) => {
</Link>
) : (
<>{displayName(poh.issuerName)}</>
)}{" "}
{poh.validated ? (
<FontAwesomeIcon size={"lg"} color={"green"} icon={faCheck} />
) : (
<FontAwesomeIcon size={"lg"} color={"red"} icon={faXmark} />
)}
{poh.validated ? ` ✅` : ` ❌`}
</div>
))}
</>
Expand All @@ -104,7 +110,14 @@ export const Poh: FunctionComponent<PohProps> = ({ title }) => {
</div>

<div className="card" style={{ padding: 0 }}>
<h2>Global POH status {isPoh ? ` ✅` : ` ❌`}</h2>
<h2>
Global POH status{" "}
{isPoh ? (
<FontAwesomeIcon size={"lg"} color={"green"} icon={faCheck} />
) : (
<FontAwesomeIcon size={"lg"} color={"red"} icon={faXmark} />
)}
</h2>
</div>

<div className="responsive-two-column-grid">
Expand Down

0 comments on commit 2931a87

Please sign in to comment.