Skip to content

Commit

Permalink
fix: use react-router for home link
Browse files Browse the repository at this point in the history
  • Loading branch information
RevolutionTech committed Jul 8, 2022
1 parent 3ade2da commit e4cc714
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/client/lobby/LobbyPage.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { styled } from "@mui/material";
import React from "react";
import { Link } from "react-router-dom";
import { styled } from "@mui/material";

import logo from "../assets/lobby/logo.svg";
import theme from "../theme";
Expand All @@ -26,7 +27,7 @@ const LobbyMenu = styled("div")({
},
backgroundColor: theme.white,
});
const LogoAnchor = styled("a")({
const LogoAnchor = styled(Link)({
position: "absolute",
alignSelf: "flex-start",
});
Expand All @@ -39,7 +40,7 @@ export const LobbyPage = (props: React.PropsWithChildren<Props>) => (
<LobbyBack>
<LobbyMenu>
{(props.showLogo ?? true) && (
<LogoAnchor href="/">
<LogoAnchor to="/">
<img src={logo} alt="Home" />
</LogoAnchor>
)}
Expand Down

0 comments on commit e4cc714

Please sign in to comment.