Skip to content
Open
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
5 changes: 2 additions & 3 deletions src/app/btc-vault/components/DepositWindowSection.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
'use client'

import { useEffect, useState } from 'react'

Check warning on line 3 in src/app/btc-vault/components/DepositWindowSection.tsx

View workflow job for this annotation

GitHub Actions / test

Run autofix to sort these imports!

import { Countdown } from '@/components/Countdown/Countdown'
import { Header, Label } from '@/components/Typography'
import Big from '@/lib/big'

import { formatDateFullMonthPaddedDayUtc } from '../services/ui/formatters'
import { formatDateFullMonthPadded } from '@/lib/utils'
import type { EpochDisplay } from '../services/ui/types'

const DEPOSIT_WINDOW_SUBTITLE = 'For the current cycle, deposits can be made until'
Expand Down Expand Up @@ -41,7 +40,7 @@
DEPOSIT WINDOW {epoch.epochId}
</Header>
<Label variant="body-l" className="text-[#171412] leading-[133%]">
{DEPOSIT_WINDOW_SUBTITLE} {formatDateFullMonthPaddedDayUtc(epoch.endTime)}.
{DEPOSIT_WINDOW_SUBTITLE} {formatDateFullMonthPadded(epoch.endTime, { utc: true })}.
</Label>
</div>
<Countdown
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import { formatSymbol, getFiatAmount } from '@/app/shared/formatter'
import { RBTC } from '@/lib/constants'
import { formatCurrencyWithLabel } from '@/lib/utils'
import { formatCurrencyWithLabel, formatDateMonthFirst } from '@/lib/utils'
import type { Row } from '@/shared/context'

import type { DepositWindowRow } from '../../services/types'
import { formatDateMonthFirst } from '../../services/ui/formatters'
import type { ColumnId, DepositHistoryCellDataMap } from './DepositHistoryTable.config'

/**
Expand Down
3 changes: 1 addition & 2 deletions src/app/fund-admin/sections/whitelist/utils.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import type { Address } from 'viem'

import type { BtcVaultWhitelistedUserItem } from '@/app/api/btc-vault/v1/whitelist-role-history/action'
import { formatDateMonthFirst } from '@/app/btc-vault/services/ui/formatters'
import { shortAddress } from '@/lib/utils'
import { formatDateMonthFirst, shortAddress } from '@/lib/utils'
import type { Row } from '@/shared/context/TableContext/types'

import type { ColumnId, WhitelistCellDataMap, WhitelistStatus } from './config'
Expand Down
3 changes: 1 addition & 2 deletions src/app/fund-manager/sections/transactions/utils.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
import type { Address } from 'viem'

import type { RequestType } from '@/app/btc-vault/services/types'
import { formatDateMonthFirst } from '@/app/btc-vault/services/ui/formatters'
import { getTxHistoryStatusLabel } from '@/app/btc-vault/services/ui/mappers'
import type { DisplayStatus } from '@/app/btc-vault/services/ui/types'
import type { BtcVaultEntityHistoryRow } from '@/app/fund-manager/sections/transactions/hooks/useGetBtcVaultEntitiesHistory'
import Big from '@/lib/big'
import { RBTC, WeiPerEther } from '@/lib/constants'
import { formatCurrency, formatCurrencyWithLabel, shortAddress } from '@/lib/utils'
import { formatCurrency, formatCurrencyWithLabel, formatDateMonthFirst, shortAddress } from '@/lib/utils'
import type { Row } from '@/shared/context'

import type { ColumnId, DepositWindowCellDataMap } from './config'
Expand Down
Loading