File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 1
- const ENDPOINT_ROOT = process . env . REACT_APP_ENDPOINT_ROOT ;
1
+ import { ENDPOINT_ROOT } from '../constants/Env' ;
2
2
3
3
export const NTP_STATUS_ENDPOINT = ENDPOINT_ROOT + "ntpStatus" ;
4
4
export const NTP_SETTINGS_ENDPOINT = ENDPOINT_ROOT + "ntpSettings" ;
Original file line number Diff line number Diff line change 1
1
export const PROJECT_NAME = process . env . REACT_APP_PROJECT_NAME ;
2
2
export const PROJECT_PATH = process . env . REACT_APP_PROJECT_PATH ;
3
+ export const ENDPOINT_ROOT = process . env . REACT_APP_ENDPOINT_ROOT ;
Original file line number Diff line number Diff line change 1
1
import React , { Component } from 'react' ;
2
+ import { ValidatorForm } from 'react-material-ui-form-validator' ;
3
+
4
+ import { ENDPOINT_ROOT } from '../constants/Env' ;
2
5
import SectionContent from '../components/SectionContent' ;
3
6
import { restComponent } from '../components/RestComponent' ;
4
7
import LoadingNotification from '../components/LoadingNotification' ;
@@ -7,9 +10,8 @@ import Button from '@material-ui/core/Button';
7
10
import Typography from '@material-ui/core/Typography' ;
8
11
import Slider from '@material-ui/core/Slider' ;
9
12
import { makeStyles } from '@material-ui/core/styles' ;
10
- import { ValidatorForm } from 'react-material-ui-form-validator' ;
11
13
12
- export const DEMO_SETTINGS_ENDPOINT = process . env . REACT_APP_ENDPOINT_ROOT + "demoSettings" ;
14
+ export const DEMO_SETTINGS_ENDPOINT = ENDPOINT_ROOT + "demoSettings" ;
13
15
14
16
const valueToPercentage = ( value ) => `${ Math . round ( value / 255 * 100 ) } %` ;
15
17
You can’t perform that action at this time.
0 commit comments