diff --git a/src/Components/DynamicIcon/DynamicIcon.tsx b/src/Components/DynamicIcon/DynamicIcon.tsx deleted file mode 100644 index 1ba6e78..0000000 --- a/src/Components/DynamicIcon/DynamicIcon.tsx +++ /dev/null @@ -1,40 +0,0 @@ -import React, { CSSProperties, SVGAttributes } from "react"; -import { IconContext } from "react-icons"; -import loadable from "@loadable/component"; - -interface IProps { - icon: string; - color?: string; - size?: string; - className?: string; - style?: CSSProperties; - attr?: SVGAttributes; -} - -const DynamicIcon: React.FC = ({ ...props }) => { - // const [library, iconComponent] = props.icon.split("/"); - - // if (!library || !iconComponent) return
Could Not Find Icon
; - - // const lib = library.toLowerCase(); - const Icon = loadable(() => import("react-icons/hi/index.js"), { - resolveComponent: (el: JSX.Element) => - el[props.icon as keyof JSX.Element] - }); - - const value: IconContext = { - color: props.color, - size: props.size, - className: props.className, - style: props.style, - attr: props.attr - }; - - return ( - - - - ); -}; - -export default DynamicIcon; diff --git a/src/Components/Navbar/NavDesktop.tsx b/src/Components/Navbar/NavDesktop.tsx index dbac04e..bb4c4a7 100644 --- a/src/Components/Navbar/NavDesktop.tsx +++ b/src/Components/Navbar/NavDesktop.tsx @@ -44,102 +44,7 @@ export default function NavDesktop() { Bolt fun logo - +
diff --git a/src/Components/Navbar/NavMobile.tsx b/src/Components/Navbar/NavMobile.tsx index 6cbcd5d..eb63bb1 100644 --- a/src/Components/Navbar/NavMobile.tsx +++ b/src/Components/Navbar/NavMobile.tsx @@ -155,124 +155,7 @@ export default function NavMobile() {
{/* toggleDrawerOpen(false)} /> */}
- +