Fixed bug in OwnershipCard component where text wasn't correctly pluralized
Signed-off-by: austinal <austinal@vmware.com>
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user