fix: marketplace background settings, reset button, intervals

This commit is contained in:
David Ralph
2021-07-18 15:54:45 +01:00
parent 2d7e138b2f
commit b426041598
5 changed files with 8 additions and 6 deletions

View File

@@ -15,7 +15,6 @@
.reset {
@extend %settingsButton;
margin-left: 5px;
background-color: map-get($button-colours, 'reset');
border: 2px solid map-get($button-colours, 'reset');

View File

@@ -158,6 +158,10 @@ export default class BackgroundSettings extends React.PureComponent {
case 'colour': backgroundSettings = <ColourSettings/>; break;
default: backgroundSettings = APISettings; break;
}
if (localStorage.getItem('photo_packs') && this.state.backgroundType !== 'custom' && this.state.backgroundType !== 'colour' && this.state.backgroundType !== 'api') {
backgroundSettings = null;
}
return (
<>