diff --git a/app/constants/index.js b/app/constants/index.js index e3a1010..13d11b0 100644 --- a/app/constants/index.js +++ b/app/constants/index.js @@ -1,7 +1,12 @@ export const AUTH_TOKEN = 'tip-auth-token'; export const COMPANY = 'Telecom Infra Project'; -export const IS_RADIO_TYPE_5GHZ = 'is5GHz'; -export const IS_RADIO_TYPE_2DOT4GHZ = 'is2dot4GHz'; + +export const USER_FRIENDLY_RADIOS = { + is2dot4GHz: '2.4GHz', + is5GHzL: '5GHz (L)', + is5GHzU: '5GHz (U)', + is5GHz: '5GHz', +}; export const ROUTES = { root: '/', diff --git a/app/containers/App/index.js b/app/containers/App/index.js index 129f83d..f5a5125 100644 --- a/app/containers/App/index.js +++ b/app/containers/App/index.js @@ -7,7 +7,7 @@ import { ThemeProvider, GenericNotFound } from '@tip-wlan/wlan-cloud-ui-library' import logo from 'images/tip-logo.png'; import logoMobile from 'images/tip-logo-mobile.png'; -import { AUTH_TOKEN, COMPANY, ROUTES } from 'constants/index'; +import { AUTH_TOKEN, COMPANY, ROUTES, USER_FRIENDLY_RADIOS } from 'constants/index'; import Login from 'containers/Login'; import Network from 'containers/Network'; @@ -65,7 +65,13 @@ const App = () => { updateUser={updateUser} updateToken={updateToken} > - + diff --git a/app/containers/Dashboard/index.js b/app/containers/Dashboard/index.js index a87ccc6..545e174 100644 --- a/app/containers/Dashboard/index.js +++ b/app/containers/Dashboard/index.js @@ -5,6 +5,7 @@ import { useQuery } from '@apollo/client'; import { Dashboard as DashboardPage, Loading } from '@tip-wlan/wlan-cloud-ui-library'; import UserContext from 'contexts/UserContext'; import { FILTER_SYSTEM_EVENTS, GET_ALL_STATUS } from 'graphql/queries'; +import { USER_FRIENDLY_RADIOS } from 'constants/index'; function formatBytes(bytes, decimals = 2) { if (bytes === 0) return '0 Bytes'; @@ -29,13 +30,6 @@ function trafficTooltipFormatter() { )}
`; } -const USER_FRIENDLY_RADIOS = { - is2dot4GHz: '2.4GHz', - is5GHzL: '5GHz (L)', - is5GHzU: '5GHz (U)', - is5GHz: '5GHz', -}; - const lineChartConfig = [ { key: 'inservicesAPs', title: 'Inservice APs (24 hours)' }, { key: 'clientDevices', title: 'Client Devices (24 hours)' },