refactor: better organise options orders

This commit is contained in:
alexsparkes
2024-08-19 22:48:33 +01:00
parent ccff5d3f6a
commit f48b7044ac
10 changed files with 236 additions and 188 deletions

View File

@@ -96,9 +96,7 @@ function SearchOptions() {
<Row final={!customEnabled}>
<Content
title={variables.getMessage(`${SEARCH_SECTION}.search_engine`)}
subtitle={variables.getMessage(
'settings:sections.search.search_engine_subtitle',
)}
subtitle={variables.getMessage('settings:sections.search.search_engine_subtitle')}
/>
<Action>
<Dropdown
@@ -151,8 +149,8 @@ function SearchOptions() {
visibilityToggle={true}
/>
<PreferencesWrapper setting="searchBar" category="widgets" visibilityToggle={true}>
<AdditionalOptions />
<SearchEngineSelection />
<AdditionalOptions />
{customEnabled && CustomOptions()}
</PreferencesWrapper>
</>