refactor: keep implementing default options, change some components to functional

Co-authored-by: Alex Sparkes <turbomarshmello@gmail.com>
This commit is contained in:
David Ralph
2024-06-11 16:11:10 +01:00
parent 5aac518cec
commit ed1b1a2f6d
31 changed files with 3989 additions and 4796 deletions

View File

@@ -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,
};
}