From db6bbb2d3c97db9cbe78e5d381427d0ba4279882 Mon Sep 17 00:00:00 2001 From: Yinger Date: Tue, 22 Sep 2020 21:25:08 +0900 Subject: [PATCH] refactoring --- src/App.tsx | 4 ++-- src/components/{DiffBtn.tsx => Center.tsx} | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) rename src/components/{DiffBtn.tsx => Center.tsx} (90%) diff --git a/src/App.tsx b/src/App.tsx index 9c53de6..9a0d704 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -6,7 +6,7 @@ import { ExcelHelper, ExcelDomain, SheetDomain } from "./utils/ExcelHelper"; import { diff } from "./utils/Diff"; import LeftHooks from "./components/Left"; import RightHooks from "./components/Right"; -import DiffButtonHooks from "./components/DiffBtn"; +import CenterHooks from "./components/Center"; import DiffResultHooks from "./components/DiffResult"; import "handsontable/dist/handsontable.full.css"; @@ -113,7 +113,7 @@ function App() { /> - { diff(leftsheetdata, rightsheetdata, hotTableComponentDiffResult); diff --git a/src/components/DiffBtn.tsx b/src/components/Center.tsx similarity index 90% rename from src/components/DiffBtn.tsx rename to src/components/Center.tsx index 6f10455..99bbc6c 100644 --- a/src/components/DiffBtn.tsx +++ b/src/components/Center.tsx @@ -8,7 +8,7 @@ interface DiffBtn { onSampleBtnClick(e: React.MouseEvent): any; } -const DiffButtonHooks = (props: DiffBtn) => { +const CenterHooks = (props: DiffBtn) => { return (