Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
nguyenlejoe committed Dec 5, 2023
1 parent 3165274 commit 522eb1d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ export { AddressActivityListView } from "./components/Organisms/TokenBalances/Ad
export { TokenBalancesListView } from "./components/Organisms/TokenBalances/TokenBalancesListView/TokenBalancesListView";
export { TokenTransfersListView } from "./components/Organisms/TokenBalances/TokenTransfersListView/TokenTransfersListView";
export { NFTWalletTokenListView } from "./components/Organisms/NFTs/NFTWalletTokenListView/NFTWalletTokenListView";
export { CovalentProvider as GoldRushProvider } from "./utils/store/Covalent";
export { CovalentProvider as GoldRushProvider } from "./utils/store/Covalent";
8 changes: 5 additions & 3 deletions src/utils/store/Covalent.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { createContext, useContext, useEffect, useMemo, useState } from "react";
import { ChainItem, CovalentClient } from "@covalenthq/client-sdk";
import { CovalentClient } from "@covalenthq/client-sdk";
import { type ChainItem } from "@covalenthq/client-sdk";
import { Toaster } from "@/components/ui/toaster";

interface CovalentContextType {
Expand Down Expand Up @@ -39,12 +40,13 @@ export const CovalentProvider: React.FC<CovalentProviderProps> = ({
}, []);

return (
<CovalentContext.Provider value={{ covalentClient: covalentClient, chains: chains }}>
<CovalentContext.Provider
value={{ covalentClient: covalentClient, chains: chains }}
>
{children}
<Toaster />
</CovalentContext.Provider>
);
};

export const useCovalent = () => useContext(CovalentContext);

0 comments on commit 522eb1d

Please sign in to comment.