Skip to content

Commit

Permalink
updated imports
Browse files Browse the repository at this point in the history
  • Loading branch information
gnimnix committed Mar 25, 2024
1 parent 7363050 commit 81512ac
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/components/shared/NavBar.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { useState } from "react";
import { Link } from "react-router-dom";
import styles from "css/shared/NavBar.module.css";
import personLogo from "../assets/img/person_logo.png";
import fintechLogo from "../assets/img/fintech_logo.png";
import personLogo from "/person_logo.png";
import fintechLogo from "/fintech_logo.png";
import { useWindowSize } from "@uidotdev/usehooks";
import { useClickAway } from "@uidotdev/usehooks";
import NavBarMobile from "./NavBarMobile.tsx";
Expand Down
12 changes: 6 additions & 6 deletions src/components/shared/NavBarMobile.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import React, { useState } from "react";
import { useState } from "react";
import { Link } from "react-router-dom";
import styles from "css/shared/NavBarMobile.module.css"; // Import CSS module
import personLogo from "../assets/img/person_logo.png";
import fintechLogo from "../assets/img/fintech_logo.png";
import closeSymbol from "../assets/img/material-symbols_close.png";
import personLogo from "/person_logo.png";
import fintechLogo from "/fintech_logo.png";
import closeSymbol from "/material-symbols_close.png";

function Navbar(): JSX.Element {
function NavBarMobile() {
const [showSideBar, setShowSideBar] = useState(false);

const toggleSideBar = () => {
Expand Down Expand Up @@ -99,4 +99,4 @@ function Navbar(): JSX.Element {
);
}

export default Navbar;
export default NavBarMobile;
10 changes: 9 additions & 1 deletion src/routes/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,19 @@ import { useWindowSize } from "@uidotdev/usehooks";
import MobileLoginContainer from "components/authentication/MobileLoginContainer.tsx";
import WebLoginContainer from "components/authentication/WebLoginContainer.tsx";
import { BREAKPOINTS } from "components/constants.tsx";
import NavBar from "components/shared/NavBar.tsx";


const App = () => {
const size = useWindowSize();
return size.width && size.width <= BREAKPOINTS.MD ? <MobileLoginContainer/> : <WebLoginContainer/>;
return (
<>
<NavBar/>
{
size.width && size.width <= BREAKPOINTS.MD ? <MobileLoginContainer/> : <WebLoginContainer/>
}
</>
);
};

export default App

0 comments on commit 81512ac

Please sign in to comment.