Skip to content

Commit

Permalink
🐛 bugfix: updated paths to work with gh pages deployment build config
Browse files Browse the repository at this point in the history
  • Loading branch information
Ayngie committed Dec 20, 2023
1 parent c9e62e6 commit 5aff774
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 22 deletions.
12 changes: 6 additions & 6 deletions src/Router.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,27 +19,27 @@ export const router = createBrowserRouter([
index: true,
},
{
path: "/life",
path: "/natural-guide-to-gestational-diabetes/life",
element: <LifeAdvice></LifeAdvice>,
},
{
path: "/training",
path: "/natural-guide-to-gestational-diabetes/training",
element: <TrainingAdvice></TrainingAdvice>,
},
{
path: "/food",
path: "/natural-guide-to-gestational-diabetes/food",
element: <FoodAdvice></FoodAdvice>,
},
{
path: "/recipes",
path: "/natural-guide-to-gestational-diabetes/recipes",
element: <RecipeTips></RecipeTips>,
},
{
path: "/search",
path: "/natural-guide-to-gestational-diabetes/search",
element: <SearchFood></SearchFood>,
},
{
path: "/about",
path: "/natural-guide-to-gestational-diabetes/about",
element: <AboutProject></AboutProject>,
},
],
Expand Down
4 changes: 2 additions & 2 deletions src/components/layout/header/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ export const Header = () => {
const menuId = "main-menu";

return (
<StyledHeader id="/">
<Link to="/" className="logo">
<StyledHeader id="/natural-guide-to-gestational-diabetes/">
<Link to="/natural-guide-to-gestational-diabetes/" className="logo">
<PageLogo>Din naturliga guide vid graviditetsdiabetes</PageLogo>
</Link>
<DesktopNavBar/>
Expand Down
14 changes: 7 additions & 7 deletions src/components/layout/header/desktopNavBar/DesktopNavBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,25 @@ export const DesktopNavBar = () => {
<StyledDesktopNavBar>
<ul className="desktop-nav">
<li>
<Link to={"/"}>Start</Link>
<Link to={"/natural-guide-to-gestational-diabetes/"}>Start</Link>
</li>
<li>
<Link to={"/life"}>Levnadsråd</Link>
<Link to={"/natural-guide-to-gestational-diabetes/life"}>Levnadsråd</Link>
</li>
<li>
<Link to={"/training"}>Träning</Link>
<Link to={"/natural-guide-to-gestational-diabetes/training"}>Träning</Link>
</li>
<li>
<Link to={"/food"}>Kost</Link>
<Link to={"/natural-guide-to-gestational-diabetes/food"}>Kost</Link>
</li>
<li>
<Link to={"/recipes"}>Recept</Link>
<Link to={"/natural-guide-to-gestational-diabetes/recipes"}>Recept</Link>
</li>
<li>
<Link to={"/search"}>Sök livsmedel</Link>
<Link to={"/natural-guide-to-gestational-diabetes/search"}>Sök livsmedel</Link>
</li>
<li>
<Link to={"/about"}>Om detta projekt</Link>
<Link to={"/natural-guide-to-gestational-diabetes/about"}>Om detta projekt</Link>
</li>
</ul>
</StyledDesktopNavBar>
Expand Down
14 changes: 7 additions & 7 deletions src/components/layout/header/hamburgerMenu/Menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,49 +17,49 @@ export const Menu = ({ open, setOpen }: IMenuProps) => {
<>
<StyledMenu open={open} aria-hidden={!isHidden}>
<Link
to={"/"}
to={"/natural-guide-to-gestational-diabetes/"}
onClick={handleClick}
tabIndex={tabIndex}
aria-hidden={true}>
Start
</Link>
<Link
to={"/life"}
to={"/natural-guide-to-gestational-diabetes/life"}
onClick={handleClick}
tabIndex={tabIndex}
aria-hidden={true}>
Levnadsråd
</Link>
<Link
to={"/training"}
to={"/natural-guide-to-gestational-diabetes/training"}
onClick={handleClick}
tabIndex={tabIndex}
aria-hidden={true}>
Träning
</Link>
<Link
to={"/food"}
to={"/natural-guide-to-gestational-diabetes/food"}
onClick={handleClick}
tabIndex={tabIndex}
aria-hidden={true}>
Kost
</Link>
<Link
to={"/recipes"}
to={"/natural-guide-to-gestational-diabetes/recipes"}
onClick={handleClick}
tabIndex={tabIndex}
aria-hidden={true}>
Recept
</Link>
<Link
to={"/search"}
to={"/natural-guide-to-gestational-diabetes/search"}
onClick={handleClick}
tabIndex={tabIndex}
aria-hidden={true}>
Sök livsmedel
</Link>
<Link
to={"/about"}
to={"/natural-guide-to-gestational-diabetes/about"}
onClick={handleClick}
tabIndex={tabIndex}
aria-hidden={true}>
Expand Down

0 comments on commit 5aff774

Please sign in to comment.