Hide Creator Settings that are not ready

This commit is contained in:
infinite-persistence 2021-05-25 09:31:59 +08:00 committed by Thomas Zarebczan
parent 82aaf361f1
commit 112947adc6

View file

@ -11,6 +11,8 @@ import I18nMessage from 'component/i18nMessage';
const DEBOUNCE_REFRESH_MS = 1000; const DEBOUNCE_REFRESH_MS = 1000;
const FEATURE_IS_READY = false;
type Props = { type Props = {
activeChannelClaim: ChannelClaim, activeChannelClaim: ChannelClaim,
settingsByChannelId: { [string]: PerChannelSettings }, settingsByChannelId: { [string]: PerChannelSettings },
@ -138,6 +140,7 @@ export default function SettingsCreatorPage(props: Props) {
)} )}
{!isBusy && ( {!isBusy && (
<> <>
{FEATURE_IS_READY && (
<Card <Card
title={__('General')} title={__('General')}
actions={ actions={
@ -162,6 +165,7 @@ export default function SettingsCreatorPage(props: Props) {
</> </>
} }
/> />
)}
<Card <Card
title={__('Filter')} title={__('Filter')}
actions={ actions={
@ -181,6 +185,7 @@ export default function SettingsCreatorPage(props: Props) {
</div> </div>
} }
/> />
{FEATURE_IS_READY && (
<Card <Card
title={__('Tip')} title={__('Tip')}
actions={ actions={
@ -220,6 +225,7 @@ export default function SettingsCreatorPage(props: Props) {
</> </>
} }
/> />
)}
</> </>
)} )}
</Page> </Page>