From d9b30d96d19e8aa18acd78aff71ebf9174bedcef Mon Sep 17 00:00:00 2001 From: Paul Kaplan Date: Tue, 18 Dec 2018 09:50:17 -0500 Subject: [PATCH] Remove approx liking/favoriting format --- package.json | 1 - src/views/preview/stats.jsx | 7 +++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index f71911e5a..d1eb30868 100644 --- a/package.json +++ b/package.json @@ -39,7 +39,6 @@ }, "devDependencies": { "ajv": "6.4.0", - "approximate-number": "2.0.0", "async": "1.5.2", "autoprefixer": "6.3.6", "babel-cli": "6.26.0", diff --git a/src/views/preview/stats.jsx b/src/views/preview/stats.jsx index 0aadc10f8..94eb252f7 100644 --- a/src/views/preview/stats.jsx +++ b/src/views/preview/stats.jsx @@ -2,7 +2,6 @@ const PropTypes = require('prop-types'); const React = require('react'); const FlexRow = require('../../components/flex-row/flex-row.jsx'); const classNames = require('classnames'); -const approx = require('approximate-number'); const CappedNumber = require('../../components/cappednumber/cappednumber.jsx'); const projectShape = require('./projectshape.jsx').projectShape; @@ -16,20 +15,20 @@ const Stats = props => ( key="loves" onClick={props.onLoveClicked} > - {approx(Math.max(0, props.loveCount), {decimal: false})} + {Math.max(0, props.loveCount)}
- {approx(Math.max(0, props.favoriteCount), {decimal: false})} + {Math.max(0, props.favoriteCount)}
- {approx(props.projectInfo.stats.remixes, {decimal: false})} + {props.projectInfo.stats.remixes}