From 15ff287b377403af0d174525ca49c89f5d012c53 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sun, 2 Aug 2020 12:05:25 -0400 Subject: [PATCH] Remove App's Props, which are the same as TaxReturn's. --- src/App.tsx | 8 +------- src/TaxReturnView.tsx | 2 +- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index 1cf5cea..ed10e76 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -5,16 +5,10 @@ import { TaxReturn } from 'ustaxlib/core'; -import TaxReturnView from './TaxReturnView'; +import TaxReturnView, { Props } from './TaxReturnView'; const S = require('./App.css'); -interface Props { - tr: TaxReturn; - showForm?: string - onFormChange?: (formName: string) => void; -} - export default function App(props: Props) { return (
); } diff --git a/src/TaxReturnView.tsx b/src/TaxReturnView.tsx index 43c261e..27d8810 100644 --- a/src/TaxReturnView.tsx +++ b/src/TaxReturnView.tsx @@ -11,7 +11,7 @@ import FormView from './FormView'; const S = require('./TaxReturnView.css'); -interface Props { +export interface Props { tr: TaxReturn; showForm?: string; onFormChange?: (formName: string) => void; -- 2.22.5