Minor updates to scheduling + event card

This commit is contained in:
Patrick Fic
2020-02-05 12:13:15 -08:00
parent d216b9fa23
commit 0714eb21a5
7 changed files with 28 additions and 10 deletions

View File

@@ -1,15 +1,32 @@
import React from "react";
import { Popover, Button } from "antd";
import CurrencyFormatter from "../../utils/CurrencyFormatter";
import PhoneFormatter from "../../utils/PhoneFormatter";
import { Link } from "react-router-dom";
import { useTranslation } from "react-i18next";
export default function Event({ event }) {
const { t } = useTranslation();
const popoverContent = (
<div>
Job Total: <CurrencyFormatter>{event.job.clm_total}</CurrencyFormatter>
<div>{`${t("jobs.fields.ro_number")}: ${event.job.ro_number}`}</div>
<div>
{t("jobs.fields.clm_total")}:
<CurrencyFormatter>{event.job.clm_total}</CurrencyFormatter>
</div>
<div>{`${t("jobs.fields.clm_no")}: ${event.job.clm_no}`}</div>
<div>
{t("jobs.fields.ownr_ea")}:{event.job.ownr_ea}
</div>
<div>
{t("jobs.fields.ownr_ph1")}:
<PhoneFormatter>{event.job.ownr_ph1}</PhoneFormatter>
</div>
<Link to={`/manage/jobs/${event.job.id}`}>
<Button>View Job</Button>
</Link>
<Button>//TODO: Reschedule</Button>
<Button>//TODO: Intake</Button>
</div>
);