From 814cadfcd4a9339553ad440c2ccebd241fee6af8 Mon Sep 17 00:00:00 2001 From: alexandermendes Date: Sun, 10 Nov 2024 17:39:20 +0000 Subject: [PATCH] fix: export provider and type also --- src/context.ts | 4 ++-- src/index.ts | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/context.ts b/src/context.ts index bd6695d..ec4ccd6 100644 --- a/src/context.ts +++ b/src/context.ts @@ -3,7 +3,7 @@ import { createContext } from 'react'; import { Withdrawal } from './types/withdrawal'; import { Stream } from './types/stream'; -type StackingContext = { +export type StakingContextType = { accountSynced: boolean; balance: BigNumber; voteBalance: BigNumber; @@ -33,4 +33,4 @@ type StackingContext = { claimAllAndSync: () => Promise; }; -export const StakingContext = createContext(null); +export const StakingContext = createContext(null); diff --git a/src/index.ts b/src/index.ts index 35563db..5a9ae50 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1 +1,3 @@ export { useStaking } from './hooks/useStaking'; +export { StakingProvider } from './provider'; +export { type StakingContextType } from './context';