Skip to content

Commit

Permalink
Move useFetchBTCBalance to useFetchSdkData
Browse files Browse the repository at this point in the history
  • Loading branch information
kkosiorowska committed Apr 9, 2024
1 parent 3766428 commit 45d58fd
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
1 change: 0 additions & 1 deletion dapp/src/hooks/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,4 @@ export * from "./useInitApp"
export * from "./useCurrencyConversion"
export * from "./useDepositTelemetry"
export * from "./useFetchBTCPriceUSD"
export * from "./useFetchBTCBalance"
export * from "./useSize"
1 change: 1 addition & 0 deletions dapp/src/hooks/sdk/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
export * from "./useInitializeAcreSdk"
export * from "./useFetchMinStakeAmount"
export * from "./useFetchSdkData"
export * from "./useFetchBTCBalance"
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { EthereumAddress } from "@acre-btc/sdk"
import { useAcreContext } from "#/acre-react/hooks"
import { logPromiseFailure } from "#/utils"
import { setEstimatedBtcBalance, setSharesBalance } from "#/store/btc"
import { useWalletContext } from "./useWalletContext"
import { useAppDispatch } from "./store"
import { useWalletContext } from "../useWalletContext"
import { useAppDispatch } from "../store/useAppDispatch"

export function useFetchBTCBalance() {
const { acre, isInitialized } = useAcreContext()
Expand Down
2 changes: 2 additions & 0 deletions dapp/src/hooks/sdk/useFetchSdkData.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import { useFetchBTCBalance } from "./useFetchBTCBalance"
import { useFetchMinStakeAmount } from "./useFetchMinStakeAmount"

export function useFetchSdkData() {
useFetchBTCBalance()
useFetchMinStakeAmount()
}
2 changes: 0 additions & 2 deletions dapp/src/hooks/useInitApp.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { useFetchSdkData, useInitializeAcreSdk } from "./sdk"
import { useSentry } from "./sentry"
import { useFetchBTCPriceUSD } from "./useFetchBTCPriceUSD"
import { useFetchBTCBalance } from "./useFetchBTCBalance"

export function useInitApp() {
// TODO: Let's uncomment when dark mode is ready
Expand All @@ -10,5 +9,4 @@ export function useInitApp() {
useInitializeAcreSdk()
useFetchSdkData()
useFetchBTCPriceUSD()
useFetchBTCBalance()
}

0 comments on commit 45d58fd

Please sign in to comment.