-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace old ChainSelect with new Header
- Loading branch information
Showing
2 changed files
with
12 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |