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

keep-around/2047bc5601acbdbdfc5acaacbab802403bb73be6
Andrei Dekterev 4 years ago committed by Andrei Dekterev
parent ff4cf7bdec
commit 546de2a18d
  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