E2C: Use cloudMigrationIsTarget config (#84654)

Use cloudMigrationIsTarget config
This commit is contained in:
Josh Hunt 2024-03-18 13:00:18 +00:00 committed by GitHub
parent 00f16cd018
commit fbb6ae35e7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -7,8 +7,5 @@ import { Page as CloudPage } from './cloud/Page';
import { Page as OnPremPage } from './onprem/Page';
export default function MigrateToCloud() {
// TODO replace this with a proper config value when it's available
const isMigrationTarget = config.namespace.startsWith('stack-');
return <Page navId="migrate-to-cloud">{isMigrationTarget ? <CloudPage /> : <OnPremPage />}</Page>;
return <Page navId="migrate-to-cloud">{config.cloudMigrationIsTarget ? <CloudPage /> : <OnPremPage />}</Page>;
}