Skip to content

Commit

Permalink
Added minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
shikhar13012001 committed Sep 28, 2022
1 parent 2fb8230 commit 4d95e51
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
12 changes: 8 additions & 4 deletions components/NavBar/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,18 @@ import { AiFillGithub } from "react-icons/ai";
import NavLinks from "./NavLinks";
import AuthLinks from "./AuthLinks";
import Drawer from "../Drawer";
import {useMediaQuery} from '@mui/material'
import { useMediaQuery } from "@mui/material";
const NavBar = () => {
const isMobile = useMediaQuery('(max-width:700px)')
const isMobile = useMediaQuery("(max-width:700px)");
return (
<Box sx={{ width: "100%", display: "flex", alignItems: "center", gap: 10 }}>
<Box sx={{ width: "100%", display: "flex", alignItems: "center", gap: 10,height:'100px' }}>
<AiFillGithub size={60} />
<Box
sx={{ display: "flex", justifyContent: isMobile?"flex-end":"space-between", width: "100%" }}
sx={{
display: "flex",
justifyContent: isMobile ? "flex-end" : "space-between",
width: "100%",
}}
>
{isMobile ? (
<Drawer />
Expand Down
3 changes: 2 additions & 1 deletion pages/_app.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Container } from "@mui/material";
import { Container, Box } from "@mui/material";
import "../styles/globals.css";
import "../styles/prism.css";
import NavBar from "../components/NavBar";
Expand Down Expand Up @@ -34,6 +34,7 @@ function MyApp({ Component, pageProps }) {
return (
<Container sx={{ mt: 3 }}>
<NavBar />

<ApolloProvider client={client}>
<Component {...pageProps} />
</ApolloProvider>
Expand Down

1 comment on commit 4d95e51

@vercel
Copy link

@vercel vercel bot commented on 4d95e51 Sep 28, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

gissues – ./

gissues-git-main-shikhar13012001.vercel.app
gissues-shikhar13012001.vercel.app
gissues.vercel.app

Please sign in to comment.