From c2d5022f89d4aa81cd84d7497821c0171e0c4a31 Mon Sep 17 00:00:00 2001 From: Andrew Michael McNutt Date: Thu, 28 Sep 2023 13:15:41 -0700 Subject: [PATCH] fix quiet compare --- sites/docs/src/examples/QuietModeCompare.tsx | 8 ++++++-- sites/docs/src/examples/QuietModeUs.tsx | 6 +----- sites/docs/src/examples/TraceryExample.tsx | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/sites/docs/src/examples/QuietModeCompare.tsx b/sites/docs/src/examples/QuietModeCompare.tsx index c51926a..f0a255e 100644 --- a/sites/docs/src/examples/QuietModeCompare.tsx +++ b/sites/docs/src/examples/QuietModeCompare.tsx @@ -45,7 +45,9 @@ function QuietModeCompare() { >

Prong

Lines of code {examples.us.split("\n").length}

- +
+ +

Raw

Vanilla Code Mirror

Lines of code {examples.codeMirror.split("\n").length}

- +
+ +

Raw

( -
+
{trim(props.currentValue).length ? trim(props.currentValue) : '""'}
), diff --git a/sites/docs/src/examples/TraceryExample.tsx b/sites/docs/src/examples/TraceryExample.tsx index 4a75922..edc465d 100644 --- a/sites/docs/src/examples/TraceryExample.tsx +++ b/sites/docs/src/examples/TraceryExample.tsx @@ -131,7 +131,7 @@ function TraceryCascadeVis(props: { onClick(node); }} > - {`${node.childRule}->`} + {node.childRule ? `${node.raw}→` : ""} {
{node.finishedText}
} {children.length ? (