From 22a7f37efb714ffdf975e53311f37642ded9fdbe Mon Sep 17 00:00:00 2001 From: anovazzi1 Date: Mon, 11 Sep 2023 18:29:11 -0300 Subject: [PATCH] fix(GradientSparkles/index.tsx): remove unnecessary import of Infinity component from lucide-react fix(GradientSparkles/index.tsx): replace usage of imported Infinity component with inline SVG code to avoid crashing the UI --- .../src/icons/GradientSparkles/index.tsx | 24 +++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/src/frontend/src/icons/GradientSparkles/index.tsx b/src/frontend/src/icons/GradientSparkles/index.tsx index b8f3534d5..49502c6ba 100644 --- a/src/frontend/src/icons/GradientSparkles/index.tsx +++ b/src/frontend/src/icons/GradientSparkles/index.tsx @@ -1,7 +1,6 @@ -import { Infinity } from "lucide-react"; import { forwardRef } from "react"; -const GradientSparkles = forwardRef>( +export const GradientSparkles = forwardRef>( (props, ref) => { return ( <> @@ -13,10 +12,27 @@ const GradientSparkles = forwardRef>( - + {/* this svg comes from the source code of lucide, + we do not use the import because it crashes the ui (why? no one knows...). + source code from the used svg: + https://github.com/lucide-icons/lucide/blob/a4076db69b52ff0debc383f76d4d671c3bad5345/icons/infinity.svg?short_path=f79de91 + */} + + + ); } ); -export default GradientSparkles;