fix(#2370): add new api from amazon in settings

keep-around/bcda002576c8f40de0c6df3c36281da631da6f49
Andrei Dekterev 4 years ago committed by Andrei Dekterev
parent f939dbc538
commit d744a3c6cb
  1. 2
      src/config/routes.tsx
  2. 8
      src/features/SystemSettings/components/APISettings/index.tsx

@ -4,7 +4,7 @@ import { ENV, isProduction } from './env'
export const APIS = {
preproduction: {
api: 'https://api-test.instat.tv',
api: 'https://db-aws-stage.instat.tv',
auth: 'https://auth.instat.tv',
},
production: {

@ -28,17 +28,17 @@ const options: Array<Option> = [
{
details: getHost(APIS.staging.api),
key: 'staging',
label: 'Стейджинг',
label: 'STAGE-OLD',
},
{
details: getHost(APIS.preproduction.api),
key: 'preproduction',
label: 'Тест',
label: 'STAGE-AWS',
},
{
details: getHost(APIS.production.api),
key: 'production',
label: 'Продакшн',
label: 'PRODUCTION',
},
]
@ -61,7 +61,7 @@ export const APISettings = ({ onChange, selectedApi }: Props) => (
defaultChecked={option.key === selectedApi}
>
{option.label}
<Details>{option.details}</Details>
<Details>{option.details.replace('.instat.tv', '')}</Details>
</RadioButton>
))
}

Loading…
Cancel
Save