From cca6f44b8e49b1439710f3e1e9cbff8a7a0f6c94 Mon Sep 17 00:00:00 2001 From: Nikolaj Frey Date: Mon, 10 Jul 2023 10:37:50 +1000 Subject: [PATCH] feat: feature/rainbow-component Added Ode --- remix/app/components/Thingtime/Thingtime.tsx | 9 ++-- remix/app/routes/index.tsx | 1 + remix/app/routes/ode.tsx | 47 ++++++++++++++++++++ 3 files changed, 54 insertions(+), 3 deletions(-) create mode 100644 remix/app/routes/ode.tsx diff --git a/remix/app/components/Thingtime/Thingtime.tsx b/remix/app/components/Thingtime/Thingtime.tsx index a280b77..0447cd7 100644 --- a/remix/app/components/Thingtime/Thingtime.tsx +++ b/remix/app/components/Thingtime/Thingtime.tsx @@ -64,10 +64,12 @@ export const Thingtime = (props) => { const renderableValue = React.useMemo(() => { if (type === "string") { - if (!thing) { + const trimmed = thing.trim() + + if (!trimmed) { return "Empty string" } - return thing + return trimmed } else if (type === "number") { return thing } else if (type === "boolean") { @@ -257,7 +259,8 @@ export const Thingtime = (props) => { + {/* */} + {/* */} +
+ +
+
+ ) +}