From 6c5103fadeb68b4a83d59cf7e57bfd9bca04e796 Mon Sep 17 00:00:00 2001 From: Jay Date: Mon, 4 Mar 2024 14:48:48 +0800 Subject: [PATCH] Rename middle to medium of tailwind css variable (#651) --- src/app/error.tsx | 2 +- src/app/globals.css | 6 ++-- src/app/not-found.tsx | 2 +- src/components/address-input.tsx | 2 +- src/components/balance-input.tsx | 6 ++-- src/components/bridge-select.tsx | 8 ++--- src/components/chain-identity.tsx | 2 +- src/components/chain-select.tsx | 12 +++---- src/components/faucet.tsx | 2 +- src/components/fee-rate-input.tsx | 2 +- src/components/footer.tsx | 4 +-- src/components/header.tsx | 14 ++++---- src/components/lnrelayers-overview.tsx | 10 +++--- src/components/modals/disclaimer-modal.tsx | 4 +-- .../modals/relayer-manage-modal.tsx | 4 +-- .../modals/relayer-manage-v3-modal.tsx | 4 +-- src/components/modals/transfer-modal.tsx | 12 +++---- src/components/record-detail.tsx | 4 +-- src/components/records-table.tsx | 4 +-- src/components/relayer-register-v3.tsx | 32 +++++++++---------- src/components/relayer-register.tsx | 32 +++++++++---------- src/components/relayers-manage.tsx | 2 +- src/components/relayers-table.tsx | 2 +- src/components/token-select.tsx | 6 ++-- src/components/token-to-receive.tsx | 4 +-- src/components/token-transfer.tsx | 2 +- src/components/transaction-hash.tsx | 2 +- src/components/transaction-status.tsx | 10 +++--- src/components/transaction-timestamp.tsx | 2 +- src/components/transfer-action.tsx | 2 +- src/components/transfer-info.tsx | 2 +- src/components/transfer.tsx | 6 ++-- src/components/user.tsx | 4 +-- .../withdrawable-liquidities-select.tsx | 8 ++--- src/ui/drawer.tsx | 2 +- src/ui/modal.tsx | 10 +++--- src/ui/notification.tsx | 4 +-- src/ui/record-result-tag.tsx | 2 +- src/ui/search.tsx | 2 +- src/ui/segmented-tabs.tsx | 2 +- src/ui/step-title.tsx | 2 +- src/ui/table.tsx | 14 ++++---- src/ui/tabs.tsx | 8 ++--- src/ui/tooltip.tsx | 2 +- src/ui/version-switch.tsx | 2 +- tailwind.config.ts | 4 +-- 46 files changed, 137 insertions(+), 137 deletions(-) diff --git a/src/app/error.tsx b/src/app/error.tsx index 2b382b550..9919176c8 100644 --- a/src/app/error.tsx +++ b/src/app/error.tsx @@ -9,7 +9,7 @@ export default function Error({ error, reset }: { error: Error; reset: () => voi return (
-
+

Oops, something went wrong !

) : null ) : ( -
+
{token ? (
Token diff --git a/src/components/bridge-select.tsx b/src/components/bridge-select.tsx index b2692c0b9..a85ef3d17 100644 --- a/src/components/bridge-select.tsx +++ b/src/components/bridge-select.tsx @@ -11,8 +11,8 @@ interface Props { export default function BridgeSelect({ value, options = [], onChange = () => undefined }: Props) { return ( {value.symbol} : undefined} placeholder={{placeholder}} disabled={disabled} @@ -39,7 +39,7 @@ export default function TokenSelect({ onClick={() => { onChange(option); }} - className="flex items-center gap-middle px-large py-small transition hover:bg-white/5" + className="flex items-center gap-medium px-large py-small transition hover:bg-white/5" > Token
diff --git a/src/components/token-to-receive.tsx b/src/components/token-to-receive.tsx index 914188953..bb5e74852 100644 --- a/src/components/token-to-receive.tsx +++ b/src/components/token-to-receive.tsx @@ -17,7 +17,7 @@ export default function TokenToReceive({ record }: Props) { ); return token ? ( -
+
{token.type !== "native" && ( )} @@ -27,7 +27,7 @@ export default function TokenToReceive({ record }: Props) { {/* add to metamask */} {window.ethereum && token.type !== "native" ? (
@@ -198,7 +198,7 @@ export default function TransactionStatus({ record }: Props) { {record?.result === RecordResult.PENDING_TO_REFUND && (
Please request refund on the target chain. -
@@ -209,10 +209,10 @@ export default function TransactionStatus({ record }: Props) { You can request refund or speed up this transaction. - -
diff --git a/src/components/transaction-timestamp.tsx b/src/components/transaction-timestamp.tsx index e8943f3a2..5beceab56 100644 --- a/src/components/transaction-timestamp.tsx +++ b/src/components/transaction-timestamp.tsx @@ -9,7 +9,7 @@ interface Props { export default function TransactionTimestamp({ record }: Props) { return ( -
+
Confirm time {record ? `${toTimeAgo(record.startTime * 1000)} (${formatTime(record.startTime * 1000)})` : null} diff --git a/src/components/transfer-action.tsx b/src/components/transfer-action.tsx index ab16c769b..7a5205692 100644 --- a/src/components/transfer-action.tsx +++ b/src/components/transfer-action.tsx @@ -121,7 +121,7 @@ function Button({ kind="primary" busy={busy} disabled={disabled} - className="flex h-10 items-center justify-center rounded-middle" + className="flex h-10 items-center justify-center rounded-medium" onClick={onClick} > {children} diff --git a/src/components/transfer-info.tsx b/src/components/transfer-info.tsx index 6e47b476a..7b21559d9 100644 --- a/src/components/transfer-info.tsx +++ b/src/components/transfer-info.tsx @@ -49,7 +49,7 @@ export default function TransferInfo({ fee, bridge, transferLimit: propTransferL }, [bridge]); return ( -
+
{bridge?.getCategory().startsWith("xtoken") ? null : ( -
+
{/* From-To */}