From f88a14ee31467daa2d4c5c015f5e502a93c2eab9 Mon Sep 17 00:00:00 2001 From: susie-laptop Date: Fri, 28 Feb 2025 19:34:56 -0500 Subject: [PATCH] [dev]set svg icons lib --- src/components/Snackbar.jsx | 24 +----- src/components/SvgIcon.jsx | 12 +++ src/icons/icons.js | 63 ++++++++++++++++ src/layouts/HeaderWithNav.jsx | 34 ++++----- src/pages/KnowledgeBase/KnowledgeBase.jsx | 9 +-- src/pages/KnowledgeBase/KnowledgeCard.jsx | 91 +++-------------------- src/styles/style.scss | 1 + 7 files changed, 109 insertions(+), 125 deletions(-) create mode 100644 src/components/SvgIcon.jsx create mode 100644 src/icons/icons.js diff --git a/src/components/Snackbar.jsx b/src/components/Snackbar.jsx index 1b84c48..c007395 100644 --- a/src/components/Snackbar.jsx +++ b/src/components/Snackbar.jsx @@ -1,4 +1,5 @@ import React, { useEffect } from 'react'; +import SvgIcon from './SvgIcon'; const Snackbar = ({ type = 'primary', message, duration = 3000, onClose }) => { if (!message) return null; @@ -21,32 +22,11 @@ const Snackbar = ({ type = 'primary', message, duration = 3000, onClose }) => { return ( <> - - - - - - - - - - - -
- - - +
{message}
-