Merge pull request #8474 from austina-lin/pluralize-team-ownership-section

Fix bug in OwnershipCard component where text wasn't correctly plur…
This commit is contained in:
Fredrik Adelöw
2021-12-16 19:50:39 +01:00
committed by GitHub
3 changed files with 8 additions and 1 deletions
+1
View File
@@ -29,6 +29,7 @@
"@material-ui/core": "^4.12.2",
"@material-ui/icons": "^4.9.1",
"@material-ui/lab": "4.0.0-alpha.57",
"pluralize": "^8.0.0",
"qs": "^6.10.1",
"react-router": "6.0.0-beta.0",
"react-router-dom": "6.0.0-beta.0",
@@ -40,6 +40,7 @@ import {
} from '@material-ui/core';
import qs from 'qs';
import React from 'react';
import pluralize from 'pluralize';
import { useAsync } from 'react-use';
type EntityTypeProps = {
@@ -96,7 +97,7 @@ const EntityCountTile = ({
{counter}
</Typography>
<Typography className={classes.bold} variant="h6">
{name}
{pluralize(name, counter)}
</Typography>
</Box>
</Link>