summaryrefslogtreecommitdiff
path: root/frontend/src/components/modals
diff options
context:
space:
mode:
authorFabian Mastenbroek <mail.fabianm@gmail.com>2020-11-01 22:08:04 +0100
committerFabian Mastenbroek <mail.fabianm@gmail.com>2020-11-01 22:08:04 +0100
commit92b951df1d02e609907dc3f69703ac544fde692c (patch)
tree644f7f0ee34fdda1b2347630aefba99a1953544e /frontend/src/components/modals
parent42470f1e50e1ca98868f53a70604ae56829d570b (diff)
Show full metric names
This change updates the frontend such that metrics are now shown by their full name instead of a code.
Diffstat (limited to 'frontend/src/components/modals')
-rw-r--r--frontend/src/components/modals/custom-components/NewPortfolioModalComponent.js4
1 files changed, 2 insertions, 2 deletions
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)}
/>
- <code>{metric}</code>
+ {METRIC_NAMES[metric]}
</Label>
</FormGroup>
))}