|
|
|
|
@ -1,5 +1,6 @@
|
|
|
|
|
import React from 'react';
|
|
|
|
|
|
|
|
|
|
import numberFormatter from '../number-formatter'
|
|
|
|
|
import Bar from './bar'
|
|
|
|
|
import MoreLink from './more-link'
|
|
|
|
|
import * as api from '../api'
|
|
|
|
|
@ -68,7 +69,7 @@ class ScreenSizes extends React.Component {
|
|
|
|
|
<Bar count={size.count} all={this.state.sizes} bg="bg-green-50" />
|
|
|
|
|
<span tooltip={EXPLANATION[size.name]} className="block px-2" style={{marginTop: '-26px'}}>{iconFor(size.name)} {size.name}</span>
|
|
|
|
|
</div>
|
|
|
|
|
<span className="font-medium">{size.count} <span className="inline-block text-xs w-8 text-right">({size.percentage}%)</span></span>
|
|
|
|
|
<span className="font-medium">{numberFormatter(size.count)} <span className="inline-block text-xs w-8 text-right">({size.percentage}%)</span></span>
|
|
|
|
|
</div>
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
@ -135,7 +136,7 @@ class Browsers extends React.Component {
|
|
|
|
|
<Bar count={browser.count} all={this.state.browsers} bg="bg-green-50" />
|
|
|
|
|
<span className="block px-2" style={{marginTop: '-26px'}}>{browser.name}</span>
|
|
|
|
|
</div>
|
|
|
|
|
<span className="font-medium">{browser.count} <span className="inline-block text-xs w-8 text-right">({browser.percentage}%)</span></span>
|
|
|
|
|
<span className="font-medium">{numberFormatter(browser.count)} <span className="inline-block text-xs w-8 text-right">({browser.percentage}%)</span></span>
|
|
|
|
|
</div>
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
@ -202,7 +203,7 @@ class OperatingSystems extends React.Component {
|
|
|
|
|
<Bar count={os.count} all={this.state.operatingSystems} bg="bg-green-50" />
|
|
|
|
|
<span className="block px-2" style={{marginTop: '-26px'}}>{os.name}</span>
|
|
|
|
|
</div>
|
|
|
|
|
<span className="font-medium">{os.count} <span className="inline-block text-xs w-8 text-right">({os.percentage}%)</span></span>
|
|
|
|
|
<span className="font-medium">{numberFormatter(os.count)} <span className="inline-block text-xs w-8 text-right">({os.percentage}%)</span></span>
|
|
|
|
|
</div>
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
|