diff --git a/src/features/background/options/BackgroundOptions.jsx b/src/features/background/options/BackgroundOptions.jsx index 9ba94926..8b08ae21 100644 --- a/src/features/background/options/BackgroundOptions.jsx +++ b/src/features/background/options/BackgroundOptions.jsx @@ -2,7 +2,7 @@ import variables from 'config/variables'; import { PureComponent } from 'react'; import { MdSource, MdOutlineKeyboardArrowRight, MdOutlineAutoAwesome } from 'react-icons/md'; -import { Header } from 'components/Layout/Settings'; +import { Header, PreferencesWrapper } from 'components/Layout/Settings'; import { Checkbox, Dropdown, Slider, Radio, Text, ChipSelect } from 'components/Form/Settings'; import { Row, Content, Action } from 'components/Layout/Settings/Item'; //import Text from 'components/Form/Settings/Text/Text'; @@ -123,9 +123,7 @@ class BackgroundOptions extends PureComponent { /> )} this.setState({ effects: false })} /> ); @@ -221,9 +211,7 @@ class BackgroundOptions extends PureComponent { header = (
this.setState({ backgroundSettingsSection: false })} /> ); @@ -254,17 +242,13 @@ class BackgroundOptions extends PureComponent { {variables.getMessage('settings:sections.background.source.title')} - {variables.getMessage( - 'settings:sections.background.source.subtitle', - )} + {variables.getMessage('settings:sections.background.source.subtitle')}
this.setState({ backgroundType: value })} category="background" @@ -281,14 +265,10 @@ class BackgroundOptions extends PureComponent {
- {variables.getMessage( - 'settings:sections.background.effects.title', - )} + {variables.getMessage('settings:sections.background.effects.title')} - {variables.getMessage( - 'settings:sections.background.effects.subtitle', - )} + {variables.getMessage('settings:sections.background.effects.subtitle')}
@@ -306,35 +286,33 @@ class BackgroundOptions extends PureComponent { (this.state.backgroundType === 'api' || this.state.backgroundType === 'custom' || this.state.marketplaceEnabled) ? ( - - - - + + - - - - + + + + + + + ) : null} {this.state.backgroundSettingsSection && ( <> @@ -345,18 +323,12 @@ class BackgroundOptions extends PureComponent { } > this.setState({ backgroundType: value })} category="background" @@ -375,15 +347,11 @@ class BackgroundOptions extends PureComponent { this.setState({ backgroundFilter: value })} category="backgroundeffect" diff --git a/src/i18n/en-GB/_settings.yml b/src/i18n/en-GB/_settings.yml index 25a90f4b..4d46eae3 100644 --- a/src/i18n/en-GB/_settings.yml +++ b/src/i18n/en-GB/_settings.yml @@ -101,6 +101,7 @@ sections: photo_information: Show photo information show_map: Show location map on photo information if available categories: Categories + category: Category buttons: title: Buttons view: Maximise @@ -141,7 +142,7 @@ sections: add_colour: Add colour add_background: Add background drop_to_upload: Drop to upload - formats: "Available formats: {list}" + formats: 'Available formats: {list}' select: Or Select add_url: Add URL disabled: Disabled @@ -330,8 +331,8 @@ sections: addons_installed: Add-ons installed usage: Usage Stats achievements: Achievements - achievement_unlocked: "Achievement Unlocked: {name}" - unlocked: "{count} Unlocked" + achievement_unlocked: 'Achievement Unlocked: {name}' + unlocked: '{count} Unlocked' locked: Locked clear_modal: question: Do you want to clear your stats?