fix eslint and types
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import type { FC } from "react";
|
||||
import React, { useContext } from "react";
|
||||
import { ethers } from "ethers";
|
||||
|
||||
@@ -37,7 +38,7 @@ export const useBsc = () => {
|
||||
return context;
|
||||
};
|
||||
|
||||
export const BscProvider = ({ children }: React.PropsWithChildren<any>) => {
|
||||
export const BscProvider: FC = ({ children }) => {
|
||||
const value: BscContext = {
|
||||
provider,
|
||||
pancake: {
|
||||
@@ -46,4 +47,4 @@ export const BscProvider = ({ children }: React.PropsWithChildren<any>) => {
|
||||
};
|
||||
|
||||
return <Context.Provider value={value}>{children}</Context.Provider>;
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user