|
@@ -14,7 +14,7 @@ import { Select } from '@/components/_inputs/Select'
|
|
|
import { Switch } from '@/components/_inputs/Switch'
|
|
|
import { DialogModal } from '@/components/_overlays/DialogModal'
|
|
|
import { atlasConfig } from '@/config'
|
|
|
-import { NODE_URL, availableEnvs, getEnvName } from '@/config/env'
|
|
|
+import { ENV_SELECTION_ENABLED, NODE_URL, availableEnvs } from '@/config/env'
|
|
|
import { absoluteRoutes } from '@/config/routes'
|
|
|
import { useConfirmationModal } from '@/providers/confirmationModal'
|
|
|
import { useEnvironmentStore } from '@/providers/environment'
|
|
@@ -31,8 +31,6 @@ import {
|
|
|
VerticalSpacedContainer,
|
|
|
} from './AdminModal.styles'
|
|
|
|
|
|
-const ENV_SELECTION_ENABLED: boolean = import.meta.env[getEnvName('ENV_SELECTION_ENABLED')] === 'true'
|
|
|
-
|
|
|
const ENVIRONMENT_NAMES: Record<string, string> = {
|
|
|
production: 'Joystream Mainnet',
|
|
|
development: `${atlasConfig.general.appName} Dev Testnet`,
|