From d6398fdb020482c5c4610560563347107ffe1893 Mon Sep 17 00:00:00 2001 From: Arnaud Date: Thu, 7 Nov 2024 14:58:56 +0100 Subject: [PATCH] Fix icon size --- src/assets/icons/error-circle.svg | 2 -- src/assets/icons/purchases-state-pending.svg | 8 ++++---- .../CustomStateCellRender.tsx | 15 ++++++--------- src/components/HealthChecks/HealthChecks.tsx | 12 ++++++++---- src/components/Peers/PeersQuality.tsx | 2 +- 5 files changed, 19 insertions(+), 20 deletions(-) diff --git a/src/assets/icons/error-circle.svg b/src/assets/icons/error-circle.svg index 95b2178..a8e775f 100644 --- a/src/assets/icons/error-circle.svg +++ b/src/assets/icons/error-circle.svg @@ -1,7 +1,5 @@ diff --git a/src/assets/icons/purchases-state-pending.svg b/src/assets/icons/purchases-state-pending.svg index 244da48..b868e75 100644 --- a/src/assets/icons/purchases-state-pending.svg +++ b/src/assets/icons/purchases-state-pending.svg @@ -1,11 +1,11 @@ diff --git a/src/components/CustomStateCellRender/CustomStateCellRender.tsx b/src/components/CustomStateCellRender/CustomStateCellRender.tsx index ce47bca..b7a095e 100644 --- a/src/components/CustomStateCellRender/CustomStateCellRender.tsx +++ b/src/components/CustomStateCellRender/CustomStateCellRender.tsx @@ -1,4 +1,4 @@ -import { Cell, Tooltip } from "@codex-storage/marketplace-ui-components"; +import { Cell } from "@codex-storage/marketplace-ui-components"; import PurchaseStateIcon from "../../assets/icons/purchases-state-pending.svg?react"; import SuccessCircleIcon from "../../assets/icons/success-circle.svg?react"; import ErrorCircleIcon from "../../assets/icons/error-circle.svg?react"; @@ -8,7 +8,7 @@ type Props = { message: string | undefined; }; -export const CustomStateCellRender = ({ state, message }: Props) => { +export const CustomStateCellRender = ({ state }: Props) => { const icons = { pending: PurchaseStateIcon, submitted: PurchaseStateIcon, @@ -31,18 +31,15 @@ export const CustomStateCellRender = ({ state, message }: Props) => { return ( -

- {message ? ( +

+ {/* {message ? ( ) : ( - )} + )} */} +

); diff --git a/src/components/HealthChecks/HealthChecks.tsx b/src/components/HealthChecks/HealthChecks.tsx index d182c6a..018cfd1 100644 --- a/src/components/HealthChecks/HealthChecks.tsx +++ b/src/components/HealthChecks/HealthChecks.tsx @@ -113,7 +113,11 @@ export function HealthChecks({ online, onStepValid }: Props) { onChange={onAddressChange} value={address} placeholder="127.0.0.1"> - {isAddressInvalid ? : } + {isAddressInvalid ? ( + + ) : ( + + )}
@@ -154,7 +158,7 @@ export function HealthChecks({ online, onStepValid }: Props) { {online ? ( ) : ( - + )} Internet connection @@ -164,7 +168,7 @@ export function HealthChecks({ online, onStepValid }: Props) { {portForwarding.enabled ? ( ) : ( - + )} Port forwarding @@ -174,7 +178,7 @@ export function HealthChecks({ online, onStepValid }: Props) { {codex.isSuccess ? ( ) : ( - + )} Codex connection diff --git a/src/components/Peers/PeersQuality.tsx b/src/components/Peers/PeersQuality.tsx index 1552acc..5fb8fa4 100644 --- a/src/components/Peers/PeersQuality.tsx +++ b/src/components/Peers/PeersQuality.tsx @@ -18,7 +18,7 @@ export function PeersQuality({ good }: Props) { return (
- + No peer connection active.
);