From 89e74690328e626d1efbae0b3198bef5d35025d1 Mon Sep 17 00:00:00 2001 From: Lucas Oliveira Date: Mon, 11 Dec 2023 00:18:14 -0300 Subject: [PATCH] Fixed Share button position and icon --- .../components/genericIconComponent/index.tsx | 11 +++++-- src/frontend/src/modals/shareModal/index.tsx | 2 +- .../extraSidebarComponent/index.tsx | 31 ++++++++++--------- .../components/nodeToolbarComponent/index.tsx | 2 +- src/frontend/src/types/components/index.ts | 1 + src/frontend/src/utils/styleUtils.ts | 2 ++ 6 files changed, 30 insertions(+), 19 deletions(-) diff --git a/src/frontend/src/components/genericIconComponent/index.tsx b/src/frontend/src/components/genericIconComponent/index.tsx index 317614b6a..62299bdf6 100644 --- a/src/frontend/src/components/genericIconComponent/index.tsx +++ b/src/frontend/src/components/genericIconComponent/index.tsx @@ -4,13 +4,20 @@ import { nodeIconsLucide } from "../../utils/styleUtils"; const ForwardedIconComponent = forwardRef( ( - { name, className, iconColor, stroke, id = "" }: IconComponentProps, + { + name, + className, + iconColor, + stroke, + strokeWidth, + id = "", + }: IconComponentProps, ref ) => { const TargetIcon = nodeIconsLucide[name] ?? nodeIconsLucide["unknown"]; const style = { - strokeWidth: 1.5, + strokeWidth: strokeWidth ?? 1.5, ...(stroke && { stroke: stroke }), ...(iconColor && { color: iconColor, stroke: stroke }), }; diff --git a/src/frontend/src/modals/shareModal/index.tsx b/src/frontend/src/modals/shareModal/index.tsx index 8d64baf69..be4414354 100644 --- a/src/frontend/src/modals/shareModal/index.tsx +++ b/src/frontend/src/modals/shareModal/index.tsx @@ -209,7 +209,7 @@ export default function ShareModal({ > Share