Minor fixes throughout the system.

This commit is contained in:
Patrick Fic
2020-08-17 13:47:10 -07:00
parent 5efb21ada7
commit 9b9feffdfa
20 changed files with 2292 additions and 141 deletions

View File

@@ -17,7 +17,7 @@ export default function JobDetailCardsNotesComponent({ loading, data }) {
<CardTemplate
loading={loading}
title={t("jobs.labels.cards.notes")}
extraLink={`/manage/jobs/${data.id}?notes`}
extraLink={`/manage/jobs/${data.id}?tab=notes`}
>
{data ? (
<Container>
@@ -25,7 +25,7 @@ export default function JobDetailCardsNotesComponent({ loading, data }) {
size="small"
bordered
dataSource={data.notes}
renderItem={item => (
renderItem={(item) => (
<List.Item>
{item.critical ? (
<EyeInvisibleFilled style={{ margin: 4, color: "red" }} />

View File

@@ -17,21 +17,21 @@ export default function JobDetailCardsTotalsComponent({ loading, data }) {
return (
<CardTemplate loading={loading} title={t("jobs.labels.cards.totals")}>
{totals ? (
<div className='imex-flex-row imex-flex-row__flex-space-around'>
<div className="imex-flex-row imex-flex-row__flex-space-around">
<Statistic
className='imex-flex-row__margin-large'
className="imex-flex-row__margin-large"
title={t("jobs.labels.total_repairs")}
value={Dinero(totals.totals.total_repairs).toFormat()}
/>
<Statistic
className='imex-flex-row__margin-large'
className="imex-flex-row__margin-large"
title={t("jobs.fields.ded_amt")}
value={Dinero({
amount: Math.round((data.ded_amt || 0) * 100),
}).toFormat()}
/>
<Statistic
className='imex-flex-row__margin-large'
className="imex-flex-row__margin-large"
title={t("jobs.labels.net_repairs")}
value={Dinero(totals.totals.net_repairs).toFormat()}
/>