Skip to content

Commit

Permalink
feat(frontend): specify the precision category for housing evolutions
Browse files Browse the repository at this point in the history
  • Loading branch information
Falinor committed Feb 3, 2025
1 parent 6ddd374 commit d888117
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import Grid from '@mui/material/Unstable_Grid2';
import Stack from '@mui/material/Stack';
import Typography from '@mui/material/Typography';
import { fromJS } from 'immutable';
import fp from 'lodash/fp';
import { FormProvider, useController, useForm } from 'react-hook-form';
import { ElementOf } from 'ts-essentials';
import * as yup from 'yup';
Expand Down Expand Up @@ -411,7 +412,7 @@ function HousingEditionSideMenu(props: HousingEditionSideMenuProps) {
<Grid
component="article"
container
sx={{ alignItems: 'center', columnGap: 2 }}
sx={{ alignItems: 'center', columnGap: 2, rowGap: 1 }}
xs={12}
>
<Grid
Expand All @@ -438,7 +439,8 @@ function HousingEditionSideMenu(props: HousingEditionSideMenuProps) {
<Grid>
{filteredEvolutions.map((precision) => (
<Tag key={precision.id} className={styles.tag}>
{precision.label}
{fp.startCase(precision.category.replace('-', ' '))} :&nbsp;
{precision.label.toLowerCase()}
</Tag>
))}
</Grid>
Expand Down

0 comments on commit d888117

Please sign in to comment.