mirror of https://github.com/stashapp/stash.git
Fix yarn extract error due to "library size" (#494)
This commit is contained in:
parent
309f7047b0
commit
f933a28e5a
|
@ -10,15 +10,18 @@ export const Stats: React.FC = () => {
|
||||||
|
|
||||||
if (error) return <span>error.message</span>;
|
if (error) return <span>error.message</span>;
|
||||||
|
|
||||||
|
var size = data.stats.scene_size_count.split(" ")
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="mt-5">
|
<div className="mt-5">
|
||||||
<div className="col col-sm-8 m-sm-auto row stats">
|
<div className="col col-sm-8 m-sm-auto row stats">
|
||||||
<div className="stats-element">
|
<div className="stats-element">
|
||||||
<p className="title">
|
<p className="title">
|
||||||
<FormattedMessage id="size" defaultMessage={data.stats.scene_size_count} />
|
<FormattedNumber value={parseFloat(size[0])} />
|
||||||
|
{" " + size[1]}
|
||||||
</p>
|
</p>
|
||||||
<p className="heading">
|
<p className="heading">
|
||||||
<FormattedMessage id="library" defaultMessage="Library size" />
|
<FormattedMessage id="library-size" defaultMessage="Library size" />
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<div className="stats-element">
|
<div className="stats-element">
|
||||||
|
|
Loading…
Reference in New Issue