From 300be557c2106deb8a7239f19c9b7130b65df691 Mon Sep 17 00:00:00 2001 From: anovazzi1 Date: Fri, 31 May 2024 17:42:47 -0300 Subject: [PATCH] feat(frontend): add ErrorOutput component to display error messages in output modal feat(frontend): update SwitchOutputView to render ErrorOutput component for 'ValueError' fix(frontend): update BaseModal header text in OutputModal component fix(frontend): update displayOutputPreview logic in ParameterComponent to check for specific log type --- .../switchOutputView/components/index.tsx | 13 +++++++++++++ .../components/switchOutputView/index.tsx | 10 +++++----- .../genericNode/components/outputModal/index.tsx | 6 +++--- .../components/parameterComponent/index.tsx | 10 +++++++--- 4 files changed, 28 insertions(+), 11 deletions(-) create mode 100644 src/frontend/src/customNodes/genericNode/components/outputModal/components/switchOutputView/components/index.tsx diff --git a/src/frontend/src/customNodes/genericNode/components/outputModal/components/switchOutputView/components/index.tsx b/src/frontend/src/customNodes/genericNode/components/outputModal/components/switchOutputView/components/index.tsx new file mode 100644 index 000000000..d650f543c --- /dev/null +++ b/src/frontend/src/customNodes/genericNode/components/outputModal/components/switchOutputView/components/index.tsx @@ -0,0 +1,13 @@ +import { Textarea } from "../../../../../../../components/ui/textarea"; + +export default function ErrorOutput({ value }: { value: string }) { + console.log(value); + return ( +