Fixed bug in OwnershipCard component where text wasn't correctly pluralized

Signed-off-by: austinal <austinal@vmware.com>
This commit is contained in:
austinal
2021-12-13 10:49:53 -05:00
parent b3f572dd01
commit 9206635397
2 changed files with 3 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>