@@ -78,4 +92,4 @@ const Dropdown = (props) => {
);
};
-export { Dropdown as default, Dropdown };
\ No newline at end of file
+export { Dropdown as default, Dropdown };
diff --git a/src/config/default.js b/src/config/default.js
index edf8500b..bae80222 100644
--- a/src/config/default.js
+++ b/src/config/default.js
@@ -4,7 +4,7 @@ const DefaultOptions = {
toastDisplayTime: 2500,
fontstyle: 'normal',
fontweight: 400,
- order: ["greeting", "time", "quicklinks", "quote", "date", "message"],
+ order: ['greeting', 'time', 'quicklinks', 'quote', 'date', 'message'],
theme: 'auto',
experimental: false,
debugtimeout: 0,
@@ -12,7 +12,7 @@ const DefaultOptions = {
animations: true,
textBorder: 'new',
widgetStyle: 'new',
- showWelcome: true
+ showWelcome: true,
};
export default DefaultOptions;
diff --git a/src/features/background/components/ExcludeModal.jsx b/src/features/background/components/ExcludeModal.jsx
index 430af612..707185cf 100644
--- a/src/features/background/components/ExcludeModal.jsx
+++ b/src/features/background/components/ExcludeModal.jsx
@@ -8,7 +8,8 @@ import defaults from '../options/default';
function ExcludeModal({ modalClose, info }) {
const excludeImage = async () => {
- let backgroundExclude = JSON.parse(localStorage.getItem('backgroundExclude')) || defaults.backgroundExclude;
+ let backgroundExclude =
+ JSON.parse(localStorage.getItem('backgroundExclude')) || defaults.backgroundExclude;
backgroundExclude.push(info.pun);
backgroundExclude = JSON.stringify(backgroundExclude);
localStorage.setItem('backgroundExclude', backgroundExclude);
@@ -22,9 +23,7 @@ function ExcludeModal({ modalClose, info }) {
{variables.getMessage('settings:sections.advanced.reset_modal.title')}
-
+
diff --git a/src/features/background/options/Colour.jsx b/src/features/background/options/Colour.jsx
index 07213e5e..29cc5403 100644
--- a/src/features/background/options/Colour.jsx
+++ b/src/features/background/options/Colour.jsx
@@ -36,11 +36,7 @@ const ColourOptions = () => {
return (
-
+
>
);
@@ -108,7 +104,7 @@ export default class CustomSettings extends PureComponent {
data = JSON.parse(localStorage.getItem('customBackground'));
} catch (e) {
const custom = localStorage.getItem('customBackground');
- data = custom ? [custom] : defaults.customBackground
+ data = custom ? [custom] : defaults.customBackground;
}
return data;
@@ -174,11 +170,14 @@ export default class CustomSettings extends PureComponent {
return toast(variables.getMessage('toasts.no_storage'));
}
- this.customBackground({
- target: {
- result: await filetoDataURL(res),
- }
- }, this.state.currentBackgroundIndex);
+ this.customBackground(
+ {
+ target: {
+ result: await filetoDataURL(res),
+ },
+ },
+ this.state.currentBackgroundIndex,
+ );
});
e.preventDefault();
};
@@ -193,14 +192,10 @@ export default class CustomSettings extends PureComponent {
- {variables.getMessage(
- 'settings:sections.background.source.custom_title',
- )}
+ {variables.getMessage('settings:sections.background.source.custom_title')}
- {variables.getMessage(
- 'settings:sections.background.source.custom_description',
- )}
+ {variables.getMessage('settings:sections.background.source.custom_description')}
@@ -209,17 +204,13 @@ export default class CustomSettings extends PureComponent {
type="settings"
onClick={() => this.uploadCustomBackground()}
icon={