Remove App's Props, which are the same as TaxReturn's.
authorRobert Sesek <rsesek@bluestatic.org>
Sun, 2 Aug 2020 16:05:25 +0000 (12:05 -0400)
committerRobert Sesek <rsesek@bluestatic.org>
Sun, 2 Aug 2020 16:05:25 +0000 (12:05 -0400)
src/App.tsx
src/TaxReturnView.tsx

index 1cf5ceaa816270ab6e4cfdf77bd426215d7e40f2..ed10e7697f665cea48339b0f877bc8294155d858 100644 (file)
@@ -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 (<div><TaxReturnView {...props} /></div>);
 }
index 43c261e23b98062b1c9926b8e0f62c48898fb161..27d8810176f2edaa7296e270703035305c54a9f2 100644 (file)
@@ -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;