diff options
| author | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2020-11-01 22:34:10 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-01 22:34:10 +0100 |
| commit | fe717acf3136400a8048b5e2aabbc99414c790c1 (patch) | |
| tree | fafa69b3ad578a817d10b9a70ddc676ebcbdeb24 /frontend/src/components/modals/custom-components/NewPortfolioModalComponent.js | |
| parent | 89bb83a4beb058d1459a6dcb2b2469c5313f8cbb (diff) | |
| parent | 19c5d386ff6dd584c42126727b231564aabf9505 (diff) | |
Merge pull request #60 from atlarge-research/feat/metric-styling
Show full metric names during portfolio creation
Diffstat (limited to 'frontend/src/components/modals/custom-components/NewPortfolioModalComponent.js')
| -rw-r--r-- | frontend/src/components/modals/custom-components/NewPortfolioModalComponent.js | 4 |
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> ))} |
