refactor(ui): split settings into dedicated classes

This commit is contained in:
Łukasz Mierzwa
2018-07-20 11:23:05 +02:00
parent c80bde05b0
commit 0f2ebbcbc7
5 changed files with 40 additions and 33 deletions

View File

@@ -20,7 +20,7 @@ const Configuration = observer(
super(props);
this.config = observable({
fetchInterval: toJS(props.settingsStore.fetchConfig.interval)
fetchInterval: toJS(props.settingsStore.fetchConfig.config.interval)
});
}
@@ -31,7 +31,7 @@ const Configuration = observer(
onChangeComplete = action(value => {
const { settingsStore } = this.props;
settingsStore.setFetchInterval(value);
settingsStore.fetchConfig.setInterval(value);
});
formatLabel(value) {