From 92b951df1d02e609907dc3f69703ac544fde692c Mon Sep 17 00:00:00 2001 From: Fabian Mastenbroek Date: Sun, 1 Nov 2020 22:08:04 +0100 Subject: Show full metric names This change updates the frontend such that metrics are now shown by their full name instead of a code. --- .../components/modals/custom-components/NewPortfolioModalComponent.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'frontend/src/components/modals') diff --git a/frontend/src/components/modals/custom-components/NewPortfolioModalComponent.js b/frontend/src/components/modals/custom-components/NewPortfolioModalComponent.js index 978ca11d..67646e2c 100644 --- a/frontend/src/components/modals/custom-components/NewPortfolioModalComponent.js +++ b/frontend/src/components/modals/custom-components/NewPortfolioModalComponent.js @@ -2,7 +2,7 @@ import PropTypes from 'prop-types' import React, { useRef } from 'react' import { Form, FormGroup, Input, Label } from 'reactstrap' import Modal from '../Modal' -import { AVAILABLE_METRICS } from '../../../util/available-metrics' +import { AVAILABLE_METRICS, METRIC_NAMES } from '../../../util/available-metrics' const NewPortfolioModalComponent = ({ show, callback }) => { const textInput = useRef(null) @@ -39,7 +39,7 @@ const NewPortfolioModalComponent = ({ show, callback }) => { type="checkbox" innerRef={(ref) => (metricCheckboxes.current[metric] = ref)} /> - {metric} + {METRIC_NAMES[metric]} ))} -- cgit v1.2.3