-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Header uses better separation of server and client components (#72)
- Loading branch information
Showing
11 changed files
with
68 additions
and
48 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
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
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
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
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
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
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,28 @@ | ||
'use client'; | ||
import useMediaQuery from '@mui/material/useMediaQuery'; | ||
import { Theme } from '@mui/material/styles'; | ||
|
||
import MobileNavigation from './MobileNavigation'; | ||
import Navigation from './Navigation'; | ||
|
||
interface MainNavigationProps { | ||
color: string; | ||
activeColor: string; | ||
} | ||
|
||
const MainNavigation: React.FC<MainNavigationProps> = ({ | ||
color, | ||
activeColor, | ||
}) => { | ||
const isMobile = useMediaQuery<Theme>((theme) => | ||
theme.breakpoints.down('sm') | ||
); | ||
|
||
return isMobile ? ( | ||
<MobileNavigation activeColor={activeColor} /> | ||
) : ( | ||
<Navigation color={color} activeColor={activeColor} /> | ||
); | ||
}; | ||
|
||
export default MainNavigation; |
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
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
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
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
37c2603
There was a problem hiding this comment.
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:
zen-site-next – ./
zen-site-next.vercel.app
zen-site-next-nichole-freys-projects.vercel.app
zen-site-next-git-main-nichole-freys-projects.vercel.app
www.thecodingyogi.me
thecodingyogi.me