From 0846a6fbd063a34b9e6446c7d1baa1895ac4b6f9 Mon Sep 17 00:00:00 2001 From: Ozzie Gooen Date: Fri, 24 Jun 2022 07:20:15 -0700 Subject: [PATCH] Show contents of modules, except for Math --- .../src/components/SquiggleItem.tsx | 23 ++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/packages/components/src/components/SquiggleItem.tsx b/packages/components/src/components/SquiggleItem.tsx index d05d7c1f..48a8a0fb 100644 --- a/packages/components/src/components/SquiggleItem.tsx +++ b/packages/components/src/components/SquiggleItem.tsx @@ -244,7 +244,28 @@ export const SquiggleItem: React.FC = ({ case "module": { return ( - Internal Module +
+ {Object.entries(expression.value) + .filter(([key, r]) => key !== "Math") + .map(([key, r]) => ( +
+
+
{key}:
+
+
+ +
+
+ ))} +
); }