From afb91a2a0c645f31be739bf9f38b76ab1ab585f0 Mon Sep 17 00:00:00 2001 From: Bartek Date: Thu, 19 Dec 2024 17:49:12 +0100 Subject: [PATCH 1/2] fast withdrawal icon --- .../public/images/LightningIcon.svg | 3 +++ .../TransferPanel/TransferPanelSummary.tsx | 22 +++++++++++++------ 2 files changed, 18 insertions(+), 7 deletions(-) create mode 100644 packages/arb-token-bridge-ui/public/images/LightningIcon.svg diff --git a/packages/arb-token-bridge-ui/public/images/LightningIcon.svg b/packages/arb-token-bridge-ui/public/images/LightningIcon.svg new file mode 100644 index 0000000000..b3b74ca881 --- /dev/null +++ b/packages/arb-token-bridge-ui/public/images/LightningIcon.svg @@ -0,0 +1,3 @@ + + + diff --git a/packages/arb-token-bridge-ui/src/components/TransferPanel/TransferPanelSummary.tsx b/packages/arb-token-bridge-ui/src/components/TransferPanel/TransferPanelSummary.tsx index 53015bc306..5298320e37 100644 --- a/packages/arb-token-bridge-ui/src/components/TransferPanel/TransferPanelSummary.tsx +++ b/packages/arb-token-bridge-ui/src/components/TransferPanel/TransferPanelSummary.tsx @@ -1,6 +1,7 @@ import React, { useMemo } from 'react' import { InformationCircleIcon } from '@heroicons/react/24/outline' import { twMerge } from 'tailwind-merge' +import Image from 'next/image' import { formatAmount } from '../../util/NumberUtils' import { getNetworkName, isNetwork } from '../../util/networks' @@ -20,6 +21,7 @@ import { NoteBox } from '../common/NoteBox' import { DISABLED_CHAIN_IDS } from './useTransferReadiness' import { useIsBatchTransferSupported } from '../../hooks/TransferPanel/useIsBatchTransferSupported' import { getConfirmationTime } from '../../util/WithdrawalUtils' +import LightningIcon from '@/images/LightningIcon.svg' export type TransferPanelSummaryToken = { symbol: string @@ -292,13 +294,19 @@ function ConfirmationTimeInfo({ chainId }: { chainId: number }) { {confirmationTimeInReadableFormatShort} {fastWithdrawalActive && ( - - - +
+ + + +
+ Lightning Icon + FAST +
+
)} From a5d0cb86c5546118e54ffec124a49ee84d67e474 Mon Sep 17 00:00:00 2001 From: Bartek Date: Thu, 19 Dec 2024 18:27:37 +0100 Subject: [PATCH 2/2] fix mobile --- .../src/components/TransferPanel/TransferPanelSummary.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/arb-token-bridge-ui/src/components/TransferPanel/TransferPanelSummary.tsx b/packages/arb-token-bridge-ui/src/components/TransferPanel/TransferPanelSummary.tsx index 5298320e37..3761043fd8 100644 --- a/packages/arb-token-bridge-ui/src/components/TransferPanel/TransferPanelSummary.tsx +++ b/packages/arb-token-bridge-ui/src/components/TransferPanel/TransferPanelSummary.tsx @@ -286,7 +286,7 @@ function ConfirmationTimeInfo({ chainId }: { chainId: number }) { return ( <> Confirmation time: - + {confirmationTimeInReadableFormat} @@ -300,7 +300,7 @@ function ConfirmationTimeInfo({ chainId }: { chainId: number }) { 'Fast Withdrawals relies on a committee of validators. In the event of a committee outage, your withdrawal falls back to the 7 day challenge period secured by Arbitrum Fraud Proofs.' } > - +
Lightning Icon