diff --git a/src/components/modals/main/settings/sections/background/Colour.jsx b/src/components/modals/main/settings/sections/background/Colour.jsx index 50c763b9..74198da6 100644 --- a/src/components/modals/main/settings/sections/background/Colour.jsx +++ b/src/components/modals/main/settings/sections/background/Colour.jsx @@ -10,7 +10,7 @@ import { toast } from 'react-toastify'; import 'react-color-gradient-picker/dist/index.css'; export default class ColourSettings extends React.PureComponent { - DefaultGradientSettings = { 'angle': '180', 'gradient': [{ 'colour': window.language.modals.main.settings.sections.background.source.disabled, 'stop': 0 }], 'type': 'linear' }; + DefaultGradientSettings = { 'angle': '180', 'gradient': [{ 'colour': '#ffb032', 'stop': 0 }], 'type': 'linear' }; GradientPickerInitalState = undefined; constructor() { @@ -76,9 +76,7 @@ export default class ColourSettings extends React.PureComponent { } componentDidUpdate() { - if (document.getElementById('customBackgroundHex').value !== this.language.sections.background.source.disabled) { - localStorage.setItem('customBackgroundColour', document.getElementById('customBackgroundHex').value); - } + localStorage.setItem('customBackgroundColour', document.getElementById('customBackgroundHex').value); } onGradientChange = (event, index) => { @@ -161,10 +159,10 @@ export default class ColourSettings extends React.PureComponent { } else { gradientInputs = this.state.gradientSettings.gradient.map((g, i) => { return ( -
{background.source.custom_colour} this.resetItem('customBackgroundColour')}>{this.language.buttons.reset}
- - {colourSettings} -{background.source.custom_colour} this.resetItem('customBackgroundColour')}>{this.language.buttons.reset}
+ + {colourSettings} > ); }