Skip to content

Commit

Permalink
routs & render
Browse files Browse the repository at this point in the history
  • Loading branch information
AnnaKotl committed Dec 6, 2024
1 parent 1dd702d commit 3f3e28a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
9 changes: 4 additions & 5 deletions src/components/Navigation/NavLogo.jsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
import React from "react";
import { Link } from "react-router-dom";
import carLogo from "/images/nav-logo.png";
import { Logo } from "./NavHeader.styled";

const NavLogo = () => {
return (
<>
<a href="/">
<Logo src={carLogo} alt="car-logo" height="80px" />
</a>
</>
<Link to="/">
<Logo src={carLogo} alt="car-logo" height="80px" />
</Link>
);
};

Expand Down
1 change: 0 additions & 1 deletion vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import react from "@vitejs/plugin-react";

export default defineConfig({
plugins: [react()],
base: '/RentCar/',
resolve: {
alias: { src: "/src" },
},
Expand Down

0 comments on commit 3f3e28a

Please sign in to comment.