Lint all the things
This commit is contained in:
@@ -1,29 +1,19 @@
|
||||
import { Space, Statistic } from 'antd';
|
||||
import React from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import Dinero from 'dinero.js';
|
||||
import { Space, Statistic } from "antd";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import Dinero from "dinero.js";
|
||||
|
||||
export default function JobCostingStatistics({ summaryData, onlyGP }) {
|
||||
const { t } = useTranslation();
|
||||
|
||||
const gpTotals = (
|
||||
<>
|
||||
<Space wrap direction="horizontal" size={'large'}>
|
||||
<Statistic
|
||||
value={Dinero(summaryData.totalSales).toFormat()}
|
||||
title={t('jobs.labels.total_sales')}
|
||||
/>
|
||||
<Statistic
|
||||
value={Dinero(summaryData.totalCost).toFormat()}
|
||||
title={t('jobs.labels.total_cost')}
|
||||
/>
|
||||
</Space>{' '}
|
||||
<Space wrap direction="horizontal" size={'large'}>
|
||||
<Statistic
|
||||
value={Dinero(summaryData.gpdollars).toFormat()}
|
||||
title={t('jobs.labels.gpdollars')}
|
||||
/>
|
||||
<Statistic value={summaryData.gppercentFormatted} title={t('jobs.labels.gppercent')} />
|
||||
<Space wrap direction="horizontal" size={"large"}>
|
||||
<Statistic value={Dinero(summaryData.totalSales).toFormat()} title={t("jobs.labels.total_sales")} />
|
||||
<Statistic value={Dinero(summaryData.totalCost).toFormat()} title={t("jobs.labels.total_cost")} />
|
||||
</Space>{" "}
|
||||
<Space wrap direction="horizontal" size={"large"}>
|
||||
<Statistic value={Dinero(summaryData.gpdollars).toFormat()} title={t("jobs.labels.gpdollars")} />
|
||||
<Statistic value={summaryData.gppercentFormatted} title={t("jobs.labels.gppercent")} />
|
||||
</Space>
|
||||
</>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user