Clean up preferences
This commit is contained in:
@ -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));
|
||||||
|
|||||||
Reference in New Issue
Block a user