Clean up preferences
This commit is contained in:
parent
aa47b35503
commit
6db6793b8b
1 changed files with 0 additions and 11 deletions
|
@ -45,17 +45,6 @@ class Preferences extends ImmutablePureComponent {
|
||||||
settings: ImmutablePropTypes.map,
|
settings: ImmutablePropTypes.map,
|
||||||
};
|
};
|
||||||
|
|
||||||
constructor(props) {
|
|
||||||
super(props);
|
|
||||||
this.state = { isLoading: false };
|
|
||||||
}
|
|
||||||
|
|
||||||
getFormData = (form) => {
|
|
||||||
return Object.fromEntries(
|
|
||||||
Array.from(form).map(i => [i.name, i.value])
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
onThemeChange = e => {
|
onThemeChange = e => {
|
||||||
const { dispatch } = this.props;
|
const { dispatch } = this.props;
|
||||||
dispatch(changeSetting(['theme'], e.target.value));
|
dispatch(changeSetting(['theme'], e.target.value));
|
||||||
|
|
Loading…
Reference in a new issue