mirror of
https://github.com/flarum/framework.git
synced 2024-11-27 02:53:37 +08:00
Change fa icon prefix to fas
This commit is contained in:
parent
cc50059f57
commit
bc8960c3ec
|
@ -53,12 +53,12 @@ export default class StatisticsWidget extends DashboardWidget {
|
||||||
<div className="StatisticsWidget-labels">
|
<div className="StatisticsWidget-labels">
|
||||||
<div className="StatisticsWidget-label">{app.translator.trans('flarum-statistics.admin.statistics.total_label')}</div>
|
<div className="StatisticsWidget-label">{app.translator.trans('flarum-statistics.admin.statistics.total_label')}</div>
|
||||||
<div className="StatisticsWidget-label">
|
<div className="StatisticsWidget-label">
|
||||||
<SelectDropdown buttonClassName="Button Button--text" caretIcon="fa fa-caret-down">
|
<SelectDropdown buttonClassName="Button Button--text" caretIcon="fas fa-caret-down">
|
||||||
{Object.keys(this.periods).map(period => (
|
{Object.keys(this.periods).map(period => (
|
||||||
<Button
|
<Button
|
||||||
active={period === this.selectedPeriod}
|
active={period === this.selectedPeriod}
|
||||||
onclick={this.changePeriod.bind(this, period)}
|
onclick={this.changePeriod.bind(this, period)}
|
||||||
icon={period === this.selectedPeriod ? 'fa fa-check' : true}>
|
icon={period === this.selectedPeriod ? 'fas fa-check' : true}>
|
||||||
{app.translator.trans('flarum-statistics.admin.statistics.'+period+'_label')}
|
{app.translator.trans('flarum-statistics.admin.statistics.'+period+'_label')}
|
||||||
</Button>
|
</Button>
|
||||||
))}
|
))}
|
||||||
|
@ -80,7 +80,7 @@ export default class StatisticsWidget extends DashboardWidget {
|
||||||
{abbreviateNumber(thisPeriodCount)}{' '}
|
{abbreviateNumber(thisPeriodCount)}{' '}
|
||||||
{periodChange ? (
|
{periodChange ? (
|
||||||
<span className={'StatisticsWidget-change StatisticsWidget-change--'+(periodChange > 0 ? 'up' : 'down')}>
|
<span className={'StatisticsWidget-change StatisticsWidget-change--'+(periodChange > 0 ? 'up' : 'down')}>
|
||||||
{icon('fa fa-arrow-'+(periodChange > 0 ? 'up' : 'down'))}
|
{icon('fas fa-arrow-'+(periodChange > 0 ? 'up' : 'down'))}
|
||||||
{Math.abs(periodChange.toFixed(1))}%
|
{Math.abs(periodChange.toFixed(1))}%
|
||||||
</span>
|
</span>
|
||||||
) : ''}
|
) : ''}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user