From ba9bab2b4d831ccc68c18f9219045da10346fd38 Mon Sep 17 00:00:00 2001 From: David Ralph Date: Sun, 11 Sep 2022 17:54:07 +0100 Subject: [PATCH] fix: interval not appearing for marketplace --- .../settings/sections/background/Background.jsx | 13 +++++++++---- .../main/settings/sections/background/Custom.jsx | 1 - 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/src/components/modals/main/settings/sections/background/Background.jsx b/src/components/modals/main/settings/sections/background/Background.jsx index 14273ce0..6659a4fd 100644 --- a/src/components/modals/main/settings/sections/background/Background.jsx +++ b/src/components/modals/main/settings/sections/background/Background.jsx @@ -62,14 +62,16 @@ export default class BackgroundSettings extends PureComponent { } render() { - const { getMessage } = this; - const interval = ( - {interval} ; + backgroundSettings = ; break; case 'colour': backgroundSettings = ; @@ -431,6 +432,10 @@ export default class BackgroundSettings extends PureComponent { + {/* // todo: ideally refactor all of this file, but we need interval to appear on marketplace too */} + {(this.state.backgroundType === 'api' || + this.state.backgroundType === 'custom' || + this.state.marketplaceEnabled) ? interval : null} {backgroundSettings} ) : null} diff --git a/src/components/modals/main/settings/sections/background/Custom.jsx b/src/components/modals/main/settings/sections/background/Custom.jsx index 59863fc6..82aac278 100644 --- a/src/components/modals/main/settings/sections/background/Custom.jsx +++ b/src/components/modals/main/settings/sections/background/Custom.jsx @@ -175,7 +175,6 @@ export default class CustomSettings extends PureComponent { render() { return ( <> - {this.props.interval}