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 FEATURE_IS_READY = false;
type Props = {
activeChannelClaim: ChannelClaim,
settingsByChannelId: { [string]: PerChannelSettings },
@ -138,6 +140,7 @@ export default function SettingsCreatorPage(props: Props) {
)}
{!isBusy && (
<>
{FEATURE_IS_READY && (
<Card
title={__('General')}
actions={
@ -162,6 +165,7 @@ export default function SettingsCreatorPage(props: Props) {
</>
}
/>
)}
<Card
title={__('Filter')}
actions={
@ -181,6 +185,7 @@ export default function SettingsCreatorPage(props: Props) {
</div>
}
/>
{FEATURE_IS_READY && (
<Card
title={__('Tip')}
actions={
@ -220,6 +225,7 @@ export default function SettingsCreatorPage(props: Props) {
</>
}
/>
)}
</>
)}
</Page>