From 182d9e19516c19f71f40f82b4b3d1a9d05351a78 Mon Sep 17 00:00:00 2001 From: anovazzi1 Date: Wed, 26 Jun 2024 19:47:49 -0300 Subject: [PATCH] update share modal style (#2361) Refactor component to use a div instead of a span for better styling and layout Co-authored-by: Gabriel Luiz Freitas Almeida Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- .../src/components/editFlowSettingsComponent/index.tsx | 6 +++--- src/frontend/src/modals/shareModal/index.tsx | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/frontend/src/components/editFlowSettingsComponent/index.tsx b/src/frontend/src/components/editFlowSettingsComponent/index.tsx index 34cd391806ec..d6f518776194 100644 --- a/src/frontend/src/components/editFlowSettingsComponent/index.tsx +++ b/src/frontend/src/components/editFlowSettingsComponent/index.tsx @@ -107,14 +107,14 @@ export const EditFlowSettings: React.FC = ({ }} /> ) : ( - {description === "" ? "No description" : description} - + )} {setEndpointName && ( diff --git a/src/frontend/src/modals/shareModal/index.tsx b/src/frontend/src/modals/shareModal/index.tsx index 13d50f0a9c54..c0ba3d628851 100644 --- a/src/frontend/src/modals/shareModal/index.tsx +++ b/src/frontend/src/modals/shareModal/index.tsx @@ -128,7 +128,7 @@ export default function ShareModal({ successShare, (err) => { setErrorData({ - title: "Error sharing " + is_component ? "component" : "flow", + title: "Error sharing " + (is_component ? "component" : "flow"), list: [err["response"]["data"]["detail"]], }); },