mirror of https://github.com/stashapp/stash.git
Add count attribute to badges (#3405)
This commit is contained in:
parent
deb5110623
commit
7761ac19de
|
@ -17,7 +17,12 @@ export const Counter: React.FC<IProps> = ({
|
|||
if (abbreviateCounter) {
|
||||
const formated = TextUtils.abbreviateCounter(count);
|
||||
return (
|
||||
<Badge className="left-spacing" pill variant="secondary">
|
||||
<Badge
|
||||
className="left-spacing"
|
||||
pill
|
||||
variant="secondary"
|
||||
data-value={intl.formatNumber(count)}
|
||||
>
|
||||
<FormattedNumber
|
||||
value={formated.size}
|
||||
maximumFractionDigits={formated.digits}
|
||||
|
@ -27,7 +32,12 @@ export const Counter: React.FC<IProps> = ({
|
|||
);
|
||||
} else {
|
||||
return (
|
||||
<Badge className="left-spacing" pill variant="secondary">
|
||||
<Badge
|
||||
className="left-spacing"
|
||||
pill
|
||||
variant="secondary"
|
||||
data-value={intl.formatNumber(count)}
|
||||
>
|
||||
{intl.formatNumber(count)}
|
||||
</Badge>
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue