From 2c5e25653e4a5db16cafdb8ccdfefe98c2ed9041 Mon Sep 17 00:00:00 2001 From: "Ziyuan (Jerry) Zhang" Date: Wed, 28 Feb 2024 13:33:53 -0500 Subject: [PATCH] refactor --- demo/src/App.tsx | 6 +++--- demo/src/DownloadJSONButton.tsx | 2 +- demo/src/MemoryModels.tsx | 15 ++++++++------- demo/src/SvgDisplay.tsx | 14 ++++++-------- demo/src/__tests__/MemoryModels.spec.tsx | 10 +++++----- 5 files changed, 23 insertions(+), 24 deletions(-) diff --git a/demo/src/App.tsx b/demo/src/App.tsx index cdb3b640..587e833c 100644 --- a/demo/src/App.tsx +++ b/demo/src/App.tsx @@ -1,6 +1,6 @@ import React, { useState } from "react"; import SvgDisplay from "./SvgDisplay"; -import MemoryModelsTab from "./MemoryModels"; +import MemoryModelsUserInput from "./MemoryModels"; import { ErrorBoundary } from "react-error-boundary"; import DownloadJSONButton from "./DownloadJSONButton"; import DownloadSVGButton from "./DownloadSVGButton"; @@ -26,7 +26,7 @@ export default function App() { return ( <> - )} - {svgResult && ( + {jsonResult && svgResult && ( )} diff --git a/demo/src/DownloadJSONButton.tsx b/demo/src/DownloadJSONButton.tsx index 6e99f92c..bd9804e0 100644 --- a/demo/src/DownloadJSONButton.tsx +++ b/demo/src/DownloadJSONButton.tsx @@ -13,7 +13,7 @@ export default function DownloadJSONButton(props: DownloadJSONButtonPropTypes) {