Skip to content

Commit

Permalink
refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
Yinger committed Sep 22, 2020
1 parent e43d907 commit db6bbb2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -113,7 +113,7 @@ function App() {
/>
</Col>
<Col span={2}>
<DiffButtonHooks
<CenterHooks
btntext={diffBtnText}
onDiffBtnClick={(e) => {
diff(leftsheetdata, rightsheetdata, hotTableComponentDiffResult);
Expand Down
4 changes: 2 additions & 2 deletions src/components/DiffBtn.tsx → src/components/Center.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ interface DiffBtn {
onSampleBtnClick(e: React.MouseEvent<HTMLElement, MouseEvent>): any;
}

const DiffButtonHooks = (props: DiffBtn) => {
const CenterHooks = (props: DiffBtn) => {
return (
<div style={{ textAlign: "center" }}>
<Button
Expand All @@ -33,4 +33,4 @@ const DiffButtonHooks = (props: DiffBtn) => {
);
};

export default DiffButtonHooks;
export default CenterHooks;

0 comments on commit db6bbb2

Please sign in to comment.