add icon to mobile navmenu & icon component init

This commit is contained in:
2022-12-11 19:26:05 +01:00
parent 2e5bd424b0
commit 599d97af21
2 changed files with 64 additions and 3 deletions

View File

@@ -1,8 +1,9 @@
import styles from "./Navigation.module.scss";
import { GractwoLogo } from "../Logo";
import Link from "next/link";
import { Icon, IconSet } from "../Icon";
import navigation from "../../data/navigation.json";
import Link from "next/link";
const Navigation = () => {
let username: string = "";
@@ -25,8 +26,7 @@ const Navigation = () => {
);
})}
<div tabIndex={0} className={`${styles.dropdown} ${styles.mobile}`}>
<GractwoLogo width={48} height={48} />
nawigacja
<Icon icon={IconSet.Menu} />
{/* TUTAJ WSTAWIĆ IKONKĘ PÓŹNIEJ */}
<div className={styles.innerdropdown}>
{navigation.map((navlink) => {