From 81dbaa315163cb6dfc967f643d9de24b357d7ed3 Mon Sep 17 00:00:00 2001 From: SevicheCC <91365763+Sevichecc@users.noreply.github.com> Date: Tue, 6 Jun 2023 02:54:20 +0800 Subject: [PATCH] refactor: move DataDisplay --- components/FormContainer.tsx | 2 +- components/{DataDisplay.tsx => ResultTable.tsx} | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) rename components/{DataDisplay.tsx => ResultTable.tsx} (89%) diff --git a/components/FormContainer.tsx b/components/FormContainer.tsx index 076ae19..99ff53a 100644 --- a/components/FormContainer.tsx +++ b/components/FormContainer.tsx @@ -1,6 +1,6 @@ "use client"; import InputForm from "@/components/InputForm"; -import DataDisplay from "@/components/DataDisplay"; +import DataDisplay from "@/components/ResultTable"; import useCreateApp from "@/hooks/useCreateApp"; const FormContainer = () => { diff --git a/components/DataDisplay.tsx b/components/ResultTable.tsx similarity index 89% rename from components/DataDisplay.tsx rename to components/ResultTable.tsx index db9f277..096a62c 100644 --- a/components/DataDisplay.tsx +++ b/components/ResultTable.tsx @@ -13,11 +13,11 @@ import { AppEntry } from "@/lib/types"; import { CopyButton } from "./ui/copybutton"; const renderTableRow = (label: string, value: string | undefined) => ( - + {label} - - {value} - {value && } + + {value} + {value && } );