Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added a Theme from Material UI To disable default behaviour which cause navbar to shift on notifications click #982

Open
wants to merge 2 commits into
base: testnet
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 9 additions & 5 deletions app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import { Providers } from "./provider";
import "@styles/globals.css";
import Navbar from "@components/UI/navbar";
import Footer from "@components/UI/footer";
import { ThemeProvider } from "@mui/material";
import { theme } from "@components/UI/theme";

export const metadata: Metadata = {
title: "Starknet Quest",
Expand Down Expand Up @@ -53,11 +55,13 @@ export default function RootLayout({
<html lang="en">
<body className="default_background_color">
<Providers>
<Navbar />
<main className="mt-[48px]">
{children}
</main>
<Footer />
<ThemeProvider theme={theme}>
<Navbar />
<main className="mt-[48px]">
{children}
</main>
<Footer />
</ThemeProvider>
</Providers>
</body>
</html>
Expand Down
13 changes: 13 additions & 0 deletions components/UI/theme.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
'use client'

import { createTheme } from "@mui/material";

export const theme = createTheme({
components: {
MuiModal: {
defaultProps: {
disableScrollLock: true,
},
},
}
})
Loading