diff --git a/src/components/monitorDayAverage.js b/src/components/monitorDayAverage.js index 88904406e..c1bdb9af6 100644 --- a/src/components/monitorDayAverage.js +++ b/src/components/monitorDayAverage.js @@ -1,9 +1,4 @@ -const locations = { - WAW: 'Warsaw', - SCL: 'Santiago de Chile', - MEL: 'Melbourne', - SIN: 'Singapore', -} +import { locations } from '../functions/helpers' export default function MonitorDayAverage({ location, avg }) { return ( diff --git a/src/components/monitorStatusHeader.js b/src/components/monitorStatusHeader.js index 63cd940ce..38bddac59 100644 --- a/src/components/monitorStatusHeader.js +++ b/src/components/monitorStatusHeader.js @@ -1,4 +1,5 @@ import config from '../../config.yaml' +import { locations } from '../functions/helpers' const classes = { green: @@ -24,7 +25,8 @@ export default function MonitorStatusHeader({ kvMonitorsLastUpdate }) {