Skip to content

Commit

Permalink
Replace old ChainSelect with new Header
Browse files Browse the repository at this point in the history
  • Loading branch information
abefernan committed Nov 20, 2023
1 parent 9fce95d commit 854d877
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
9 changes: 9 additions & 0 deletions components/Header.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import ChainConnect from "./ChainConnect";

export default function Header() {
return (
<header className="bg-fuchsia-900">
<ChainConnect />
</header>
);
}
8 changes: 3 additions & 5 deletions pages/_app.tsx
Original file line number Diff line number Diff line change
@@ -1,20 +1,18 @@
import Header from "@/components/Header";
import { Toaster } from "@/components/ui/toaster";
import ThemeProvider from "@/context/ThemesContext";
import "@/styles/globals.css";
import type { AppProps } from "next/app";
import ChainSelect from "../components/chainSelect/ChainSelect";
import { ChainsProvider } from "../context/ChainsContext";

function MultisigApp({ Component, pageProps }: AppProps) {
const showChainSelect = process.env.NEXT_PUBLIC_MULTICHAIN?.toLowerCase() === "true";
export default function MultisigApp({ Component, pageProps }: AppProps) {
return (
<ChainsProvider>
<ThemeProvider attribute="class" defaultTheme="dark" enableSystem>
{showChainSelect && <ChainSelect />}
<Header />
<Component {...pageProps} />
<Toaster />
</ThemeProvider>
</ChainsProvider>
);
}
export default MultisigApp;

0 comments on commit 854d877

Please sign in to comment.