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}/>
<Epochs epochs={state.epochs} dispatch={dispatch} />
<Options options={state.options} dispatch={dispatch}/>
<Output results={results} setResults={setResults}/>
<Output results={state.results} dispatch={dispatch}/>
</div>
);
}

View file

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

View file

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