hook results to Output render

This commit is contained in:
Sorrel Bri 2019-12-20 14:03:40 -08:00
parent 2d207c4783
commit b748c8d104
3 changed files with 3 additions and 3 deletions

View file

@ -126,7 +126,7 @@ const PhonoChangeApplier = () => {
<Features phones={state.phones} features={state.features} dispatch={dispatch}/> <Features phones={state.phones} features={state.features} dispatch={dispatch}/>
<Epochs epochs={state.epochs} dispatch={dispatch} /> <Epochs epochs={state.epochs} dispatch={dispatch} />
<Options options={state.options} dispatch={dispatch}/> <Options options={state.options} dispatch={dispatch}/>
<Output results={results} setResults={setResults}/> <Output results={state.results} dispatch={dispatch}/>
</div> </div>
); );
} }

View file

@ -60,7 +60,7 @@ export const initState = (changesArgument: number = -1): stateType => {
options: { options: {
output: 'default', save: false output: 'default', save: false
}, },
results: {}, results: [],
errors: {}, errors: {},
features: {}, features: {},
lexicon: [] lexicon: []

View file

@ -17,7 +17,7 @@ export type stateType = {
epochs: Array<epochType>, epochs: Array<epochType>,
phones: {[key: string]: phoneType}, phones: {[key: string]: phoneType},
options: {output: string, save: boolean}, options: {output: string, save: boolean},
results: {}, results: [],
errors: {}, errors: {},
features: featureType features: featureType
} }