Skip to content

Commit

Permalink
Move market details specific components
Browse files Browse the repository at this point in the history
  • Loading branch information
yivlad committed Dec 7, 2024
1 parent a5ba18e commit c9412d7
Show file tree
Hide file tree
Showing 16 changed files with 18 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { NormalizedUnitNumber } from '@marsfoundation/common-universal'
import { DebtCeilingProgress } from './DebtCeilingProgress'

const meta: Meta<typeof DebtCeilingProgress> = {
title: 'Features/Markets/Components/DebtCeilingProgress',
title: 'Features/MarketDetails/Components/MyWallet/DebtCeilingProgress',
component: DebtCeilingProgress,
decorators: [WithTooltipProvider(), WithClassname('max-w-2xl'), withRouter],
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { USD_MOCK_TOKEN } from '@/domain/types/Token'
import { Progress } from '@/features/markets/components/debt-ceiling-progress/Progress'
import { Progress } from '@/features/market-details/components/debt-ceiling-progress/Progress'
import { Link } from '@/ui/atoms/link/Link'
import { links } from '@/ui/constants/links'
import { Info } from '@/ui/molecules/info/Info'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Meta, StoryObj } from '@storybook/react'
import { Progress } from './Progress'

const meta: Meta<typeof Progress> = {
title: 'Features/Markets/Components/DebtCeilingProgress/Progress',
title: 'Features/MarketDetails/Components/MyWallet/DebtCeilingProgress/Progress',
component: Progress,
decorators: [WithClassname('max-w-sm')],
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Meta, StoryObj } from '@storybook/react'
import { InfoTile } from './InfoTile'

const meta: Meta<typeof InfoTile> = {
title: 'Components/Molecules/InfoTile',
title: 'Features/MarketDetails/Components/MyWallet/InfoTile',
component: InfoTile,
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ export function InfoTile({ children, 'data-testid': dataTestId, className }: Inf
}

function Label({ children }: InfoTileProps) {
return <div className="typography-label-5 my-auto text-primary">{children}</div>
return <div className="typography-label-5 my-auto text-secondary">{children}</div>
}

function Value({ children, 'data-testid': dataTestId, className }: InfoTileProps) {
return (
<div
className={cn(
'typography-body-5 flex items-center gap-1 justify-self-end text-primary sm:min-h-[26px] sm:justify-self-start sm:text-base sm:leading-none',
'typography-body-4 flex items-center gap-1 justify-self-end text-primary sm:min-h-[26px] sm:justify-self-start',
className,
)}
data-testid={dataTestId}
Expand All @@ -43,7 +43,7 @@ function ComplementaryLine({ children, 'data-testid': dataTestId, className }: I
'col-start-2 row-start-2 justify-self-end',
'typography-label-6 text-secondary',
'sm:col-start-1 sm:row-start-3',
'sm:justify-self-start sm:leading-none',
'sm:justify-self-start',
className,
)}
data-testid={dataTestId}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { FixedOracleInfo } from '@/domain/oracles/types'
import { USD_MOCK_TOKEN } from '@/domain/types/Token'
import { InfoTile } from '@/features/market-details/components/info-tile/InfoTile'
import { Panel } from '@/ui/atoms/panel/Panel'
import { BlockExplorerAddressLink } from '@/ui/molecules/block-explorer-address-link/BlockExplorerAddressLink'
import { InfoTile } from '@/ui/molecules/info-tile/InfoTile'
import { Info } from '@/ui/molecules/info/Info'
import { testIds } from '@/ui/utils/testIds'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { MarketPriceOracleInfo } from '@/domain/oracles/types'
import { USD_MOCK_TOKEN } from '@/domain/types/Token'
import { InfoTile } from '@/features/market-details/components/info-tile/InfoTile'
import { Panel } from '@/ui/atoms/panel/Panel'
import { BlockExplorerAddressLink } from '@/ui/molecules/block-explorer-address-link/BlockExplorerAddressLink'
import { InfoTile } from '@/ui/molecules/info-tile/InfoTile'
import { Info } from '@/ui/molecules/info/Info'
import { testIds } from '@/ui/utils/testIds'
import { ProvidersList } from './ProvidersList'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { UnderlyingAssetOracleInfo } from '@/domain/oracles/types'
import { USD_MOCK_TOKEN } from '@/domain/types/Token'
import { InfoTile } from '@/features/market-details/components/info-tile/InfoTile'
import { Panel } from '@/ui/atoms/panel/Panel'
import { BlockExplorerAddressLink } from '@/ui/molecules/block-explorer-address-link/BlockExplorerAddressLink'
import { InfoTile } from '@/ui/molecules/info-tile/InfoTile'
import { Info } from '@/ui/molecules/info/Info'
import { testIds } from '@/ui/utils/testIds'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { UnknownOracleInfo } from '@/domain/oracles/types'
import { USD_MOCK_TOKEN } from '@/domain/types/Token'
import { InfoTile } from '@/features/market-details/components/info-tile/InfoTile'
import { Panel } from '@/ui/atoms/panel/Panel'
import { BlockExplorerAddressLink } from '@/ui/molecules/block-explorer-address-link/BlockExplorerAddressLink'
import { InfoTile } from '@/ui/molecules/info-tile/InfoTile'
import { testIds } from '@/ui/utils/testIds'

export function UnknownOraclePanel({ chainId, token, price, priceOracleAddress }: UnknownOracleInfo) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { YieldingFixedOracleInfo } from '@/domain/oracles/types'
import { InfoTile } from '@/features/market-details/components/info-tile/InfoTile'
import { assets } from '@/ui/assets'
import { Panel } from '@/ui/atoms/panel/Panel'
import { BlockExplorerAddressLink } from '@/ui/molecules/block-explorer-address-link/BlockExplorerAddressLink'
import { InfoTile } from '@/ui/molecules/info-tile/InfoTile'
import { Info } from '@/ui/molecules/info/Info'
import { testIds } from '@/ui/utils/testIds'
import { NormalizedUnitNumber } from '@marsfoundation/common-universal'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import { CapAutomatorConfig } from '@/domain/cap-automator/types'
import { formatPercentage } from '@/domain/common/format'
import { BorrowEligibilityStatus } from '@/domain/market-info/reserve-status'
import { Token } from '@/domain/types/Token'
import { InfoTile } from '@/features/market-details/components/info-tile/InfoTile'
import { ApyTooltip } from '@/ui/molecules/apy-tooltip/ApyTooltip'
import { CooldownTimer } from '@/ui/molecules/cooldown-timer/CooldownTimer'
import { InfoTile } from '@/ui/molecules/info-tile/InfoTile'
import { cn } from '@/ui/utils/style'
import { testIds } from '@/ui/utils/testIds'
import { NormalizedUnitNumber, Percentage } from '@marsfoundation/common-universal'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { formatPercentage } from '@/domain/common/format'
import { DebtCeilingProgress } from '@/features/markets/components/debt-ceiling-progress/DebtCeilingProgress'
import { InfoTile } from '@/ui/molecules/info-tile/InfoTile'
import { DebtCeilingProgress } from '@/features/market-details/components/debt-ceiling-progress/DebtCeilingProgress'
import { InfoTile } from '@/features/market-details/components/info-tile/InfoTile'
import { CollateralStatusInfo } from '../../types'
import { EmptyStatusPanel } from './components/EmptyStatusPanel'
import { Header } from './components/Header'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ import { formatPercentage } from '@/domain/common/format'
import { eModeCategoryIdToName } from '@/domain/e-mode/constants'
import { EModeCategoryId } from '@/domain/e-mode/types'
import { TokenSymbol } from '@/domain/types/TokenSymbol'
import { InfoTile } from '@/features/market-details/components/info-tile/InfoTile'
import { assets } from '@/ui/assets'
import { Link } from '@/ui/atoms/link/Link'
import { links } from '@/ui/constants/links'
import { EModeBadge } from '@/ui/molecules/e-mode-badge/EModeBadge'
import { InfoTile } from '@/ui/molecules/info-tile/InfoTile'
import { cn } from '@/ui/utils/style'
import { Percentage } from '@marsfoundation/common-universal'
import { Header } from './components/Header'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { formatPercentage } from '@/domain/common/format'
import { Token } from '@/domain/types/Token'
import { InfoTile } from '@/ui/molecules/info-tile/InfoTile'
import { InfoTile } from '@/features/market-details/components/info-tile/InfoTile'
import { NormalizedUnitNumber, Percentage } from '@marsfoundation/common-universal'
import { Header } from './components/Header'
import { InfoTilesGrid } from './components/InfoTilesGrid'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import { CapAutomatorConfig } from '@/domain/cap-automator/types'
import { formatPercentage } from '@/domain/common/format'
import { SupplyAvailabilityStatus } from '@/domain/market-info/reserve-status'
import { Token } from '@/domain/types/Token'
import { InfoTile } from '@/features/market-details/components/info-tile/InfoTile'
import { ApyTooltip } from '@/ui/molecules/apy-tooltip/ApyTooltip'
import { CooldownTimer } from '@/ui/molecules/cooldown-timer/CooldownTimer'
import { InfoTile } from '@/ui/molecules/info-tile/InfoTile'
import { cn } from '@/ui/utils/style'
import { testIds } from '@/ui/utils/testIds'
import { NormalizedUnitNumber, Percentage } from '@marsfoundation/common-universal'
Expand Down

0 comments on commit c9412d7

Please sign in to comment.