mirror of
https://github.com/mue/mue.git
synced 2026-07-16 21:44:22 +02:00
refactor: keep implementing default options, change some components to functional
Co-authored-by: Alex Sparkes <turbomarshmello@gmail.com>
This commit is contained in:
@@ -9,13 +9,14 @@ import { Dropdown, Checkbox } from 'components/Form/Settings';
|
||||
import EventBus from 'utils/eventbus';
|
||||
|
||||
import searchEngines from '../search_engines.json';
|
||||
import defaults from './default';
|
||||
|
||||
class SearchOptions extends PureComponent {
|
||||
constructor() {
|
||||
super();
|
||||
this.state = {
|
||||
customEnabled: false,
|
||||
customValue: localStorage.getItem('customSearchEngine') || '',
|
||||
customValue: localStorage.getItem('customSearchEngine') || defaults.customSearchEngine,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user