Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add fast withdrawal icon #2157

Merged
merged 3 commits into from
Dec 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading