Skip to content

Commit

Permalink
Pull the existing components one level up
Browse files Browse the repository at this point in the history
If there's only an index file, there's no need to have a directory with an index.* file. The idea with using index.tsx is that imports can remain unchanged in cases where we upgrade from having a single-file component to needing scoped sibling components.
  • Loading branch information
kkosiorowska committed Dec 4, 2024
1 parent 1bfe0fc commit 6e4c0aa
Show file tree
Hide file tree
Showing 10 changed files with 5 additions and 5 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
numberToLocaleString,
} from "#/utils"
import { CurrencyType, AmountType } from "#/types"
import Tooltip from "../Tooltip"
import Tooltip from "./Tooltip"

export type CurrencyBalanceProps = {
currency: CurrencyType
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from "react"
import { useCurrencyConversion } from "#/hooks"
import { CurrencyBalance, CurrencyBalanceProps } from "../CurrencyBalance"
import { CurrencyBalance, CurrencyBalanceProps } from "./CurrencyBalance"

export function CurrencyBalanceWithConversion({
from,
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ import { useCurrencyConversion } from "#/hooks"
import NumberFormatInput, {
NumberFormatInputValues,
NumberFormatInputProps,
} from "../NumberFormatInput"
import { CurrencyBalance } from "../CurrencyBalance"
import HelperErrorText, { HelperErrorTextProps } from "../Form/HelperErrorText"
} from "./NumberFormatInput"
import { CurrencyBalance } from "./CurrencyBalance"
import HelperErrorText, { HelperErrorTextProps } from "./Form/HelperErrorText"

type FiatCurrencyBalanceProps = {
amount: bigint
Expand Down

0 comments on commit 6e4c0aa

Please sign in to comment.