Fix yarn extract error due to "library size" (#494)

This commit is contained in:
bnkai 2020-04-26 09:49:55 +03:00 committed by GitHub
parent 309f7047b0
commit f933a28e5a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 2 deletions

View File

@ -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">