Skip to content

Commit

Permalink
feat: add fast withdrawal icon (#2157)
Browse files Browse the repository at this point in the history
  • Loading branch information
brtkx authored Dec 20, 2024
1 parent 8255559 commit 716330c
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 8 deletions.
3 changes: 3 additions & 0 deletions packages/arb-token-bridge-ui/public/images/LightningIcon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -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'
Expand All @@ -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
Expand Down Expand Up @@ -284,21 +286,27 @@ function ConfirmationTimeInfo({ chainId }: { chainId: number }) {
return (
<>
<span className="whitespace-nowrap">Confirmation time:</span>
<span className="flex items-center font-medium">
<span className="flex flex-col items-start font-medium sm:flex-row sm:items-center">
<span className="hidden sm:inline">
{confirmationTimeInReadableFormat}
</span>
<span className="sm:hidden">
{confirmationTimeInReadableFormatShort}
</span>
{fastWithdrawalActive && (
<Tooltip
content={
'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.'
}
>
<InformationCircleIcon className="ml-1 h-3 w-3" />
</Tooltip>
<div className="flex items-center">
<Tooltip
content={
'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.'
}
>
<InformationCircleIcon className="h-3 w-3 sm:ml-1" />
</Tooltip>
<div className="ml-1 flex space-x-0.5 text-[#FFD000]">
<Image src={LightningIcon} alt="Lightning Icon" />
<span className="font-normal">FAST</span>
</div>
</div>
)}
</span>
</>
Expand Down

0 comments on commit 716330c

Please sign in to comment.