From 4e5e8cc19a11d62f997839c78b304ba050a65a1f Mon Sep 17 00:00:00 2001 From: Samuel Therrien Date: Tue, 10 Dec 2024 18:55:58 -0500 Subject: [PATCH] Remove material-icons package --- canopeum_frontend/package-lock.json | 7 ------- canopeum_frontend/package.json | 1 - canopeum_frontend/src/components/Navbar.tsx | 3 +-- 3 files changed, 1 insertion(+), 10 deletions(-) diff --git a/canopeum_frontend/package-lock.json b/canopeum_frontend/package-lock.json index ac47eb84..c1b88b6d 100644 --- a/canopeum_frontend/package-lock.json +++ b/canopeum_frontend/package-lock.json @@ -20,7 +20,6 @@ "i18next-http-backend": "^2.5.0", "jwt-decode": "4.0.0", "maplibre-gl": "^4.1.1", - "material-icons": "^1.13.12", "nswag": "^14.1.0", "react": "^18.2.0", "react-dom": "^18.2.0", @@ -11557,12 +11556,6 @@ "url": "https://github.com/maplibre/maplibre-gl-js?sponsor=1" } }, - "node_modules/material-icons": { - "version": "1.13.12", - "resolved": "https://registry.npmjs.org/material-icons/-/material-icons-1.13.12.tgz", - "integrity": "sha512-/2YoaB79IjUK2B2JB+vIXXYGtBfHb/XG66LvoKVM5ykHW7yfrV5SP6d7KLX6iijY6/G9GqwgtPQ/sbhFnOURVA==", - "license": "Apache-2.0" - }, "node_modules/media-typer": { "version": "0.3.0", "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", diff --git a/canopeum_frontend/package.json b/canopeum_frontend/package.json index d1ee1453..731e693f 100644 --- a/canopeum_frontend/package.json +++ b/canopeum_frontend/package.json @@ -27,7 +27,6 @@ "i18next-http-backend": "^2.5.0", "jwt-decode": "4.0.0", "maplibre-gl": "^4.1.1", - "material-icons": "^1.13.12", "nswag": "^14.1.0", "react": "^18.2.0", "react-dom": "^18.2.0", diff --git a/canopeum_frontend/src/components/Navbar.tsx b/canopeum_frontend/src/components/Navbar.tsx index c7a1867d..f7892c43 100644 --- a/canopeum_frontend/src/components/Navbar.tsx +++ b/canopeum_frontend/src/components/Navbar.tsx @@ -1,4 +1,3 @@ -import type { MaterialIcon } from 'material-icons' import { useContext, useState } from 'react' import { useTranslation } from 'react-i18next' import { Link, useLocation } from 'react-router-dom' @@ -8,7 +7,7 @@ import { appRoutes } from '@constants/routes.constant' import type { RoleEnum } from '@services/api' type NavbarItem = { - icon: MaterialIcon, + icon: string, linkTo: string, label: string, roles: RoleEnum[],