diff --git a/frontend/react-app/package-lock.json b/frontend/react-app/package-lock.json index c6b0fc3..2b6c9c6 100644 --- a/frontend/react-app/package-lock.json +++ b/frontend/react-app/package-lock.json @@ -14,6 +14,7 @@ "ajv": "^8.17.1", "ajv-keywords": "^5.1.0", "jquery": "^3.7.1", + "lucide-react": "^0.486.0", "react": "^18.3.1", "react-cookie": "^7.2.2", "react-dom": "^18.3.1", @@ -12865,6 +12866,15 @@ "yallist": "^3.0.2" } }, + "node_modules/lucide-react": { + "version": "0.486.0", + "resolved": "https://registry.npmjs.org/lucide-react/-/lucide-react-0.486.0.tgz", + "integrity": "sha512-xWop/wMsC1ikiEVLZrxXjPKw4vU/eAip33G2mZHgbWnr4Nr5Rt4Vx4s/q1D3B/rQVbxjOuqASkEZcUxDEKzecw==", + "license": "ISC", + "peerDependencies": { + "react": "^16.5.1 || ^17.0.0 || ^18.0.0 || ^19.0.0" + } + }, "node_modules/lz-string": { "version": "1.5.0", "resolved": "https://registry.npmjs.org/lz-string/-/lz-string-1.5.0.tgz", diff --git a/frontend/react-app/package.json b/frontend/react-app/package.json index 2136c88..41607bb 100644 --- a/frontend/react-app/package.json +++ b/frontend/react-app/package.json @@ -9,6 +9,7 @@ "ajv": "^8.17.1", "ajv-keywords": "^5.1.0", "jquery": "^3.7.1", + "lucide-react": "^0.486.0", "react": "^18.3.1", "react-cookie": "^7.2.2", "react-dom": "^18.3.1", diff --git a/frontend/react-app/src/components/Header.jsx b/frontend/react-app/src/components/Header.jsx index c31818a..e3dbc6f 100644 --- a/frontend/react-app/src/components/Header.jsx +++ b/frontend/react-app/src/components/Header.jsx @@ -1,20 +1,38 @@ -import {useCookies} from 'react-cookie' +import { useCookies } from 'react-cookie' +import { Home, UserCircle, ListChecks, ShieldUser, LogOut } from "lucide-react"; + function Header(){ - const [cookies] = useCookies(['userInfo']) + const [cookies, removeCookie] = useCookies(['userInfo']) + + function clearCookies() { + removeCookie("userInfo"); + window.location.href = "/home"; + } + return( - -