Fix missing tabs - Embed (#2804)

* Fix missing tabs

* Fix Eslint error

* Fix Eslint errors
This commit is contained in:
Hariom Balhara authored and GitHub committed 2022-05-18 09:04:50 -06:00
1 parent 821105dccb
commit 1fb637d29d
9 files changed
+31 -29

No files matched your search

+1
View File
@@ -1,3 +1,4 @@
/* eslint-disable @typescript-eslint/no-var-requires */
const withNextra = require("nextra")({
theme: "nextra-theme-docs",
themeConfig: "./theme.config.js",
-1
View File
@@ -56,7 +56,6 @@ const NavTabs: FC<NavTabProps> = ({ tabs, linkProps, ...props }) => {
const Component = tab.adminRequired ? AdminRequired : Fragment;
if (!href) return null;
return (
<Component key={tab.name}>
<Link key={tab.name} href={href} {...linkProps}>
+1 -2
View File
@@ -39,8 +39,7 @@ export function ContractsProvider({ children }: Props) {
return (
<>
{/* @ts-ignore */}
<ContractsContext.Provider value={value}>{children}</ContractsContext.Provider>
<ContractsContext.Provider value={value as any}>{children}</ContractsContext.Provider>
</>
);
}