Skip to content

Commit

Permalink
fix: export provider and type also
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandermendes committed Nov 10, 2024
1 parent 7b723cd commit 814cadf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -33,4 +33,4 @@ type StackingContext = {
claimAllAndSync: () => Promise<void>;
};

export const StakingContext = createContext<StackingContext | null>(null);
export const StakingContext = createContext<StakingContextType | null>(null);
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
export { useStaking } from './hooks/useStaking';
export { StakingProvider } from './provider';
export { type StakingContextType } from './context';

0 comments on commit 814cadf

Please sign in to comment.