Fixed some styling issues

This commit is contained in:
Patrick Fic
2020-12-09 16:45:22 -08:00
parent 1ca2e16e73
commit 2981c7ba67
4 changed files with 20 additions and 21 deletions

View File

@@ -14,7 +14,7 @@
.imex-flex-row { .imex-flex-row {
display: flex; display: flex;
justify-content: flex-start; justify-content: flex-start;
flex-wrap: wrap; //flex-wrap: wrap;
align-items: center; align-items: center;
&__grow { &__grow {

View File

@@ -53,7 +53,7 @@ function ChatSendMessageComponent({
}; };
return ( return (
<div className="imex-flex-row"> <div className="imex-flex-row" style={{ width: "100%" }}>
<ChatPresetsComponent className="imex-flex-row__margin" /> <ChatPresetsComponent className="imex-flex-row__margin" />
<Input.TextArea <Input.TextArea

View File

@@ -7,22 +7,13 @@ import "./phone-form-item.styles.scss";
function FormItemPhone(props, ref) { function FormItemPhone(props, ref) {
return ( return (
<PhoneInput <PhoneInput
country="ca"
onlyCountries={["ca", "us"]} onlyCountries={["ca", "us"]}
ref={ref} ref={ref}
className="ant-input" className="ant-input"
{...props} {...props}
/> />
); );
// return (
// <NumberFormat
// {...props}
// className="ant-input"
// ref={ref}
// type="tel"
// format="###-###-####"
// />
// );
} }
export default forwardRef(FormItemPhone); export default forwardRef(FormItemPhone);

View File

@@ -1,4 +1,4 @@
import { Col, Result, Row, Typography } from "antd"; import { Col, Collapse, Result, Row, Typography } from "antd";
import Dinero from "dinero.js"; import Dinero from "dinero.js";
import { JsonEditor as Editor } from "jsoneditor-react"; import { JsonEditor as Editor } from "jsoneditor-react";
import "jsoneditor-react/es/editor.min.css"; import "jsoneditor-react/es/editor.min.css";
@@ -326,7 +326,9 @@ export function JobsTotalsTableComponent({ bodyshop, jobRO, job }) {
<tr> <tr>
<td>{t("jobs.labels.subtotal")}</td> <td>{t("jobs.labels.subtotal")}</td>
<td className="currency"> <td className="currency">
{Dinero(job.job_totals.totals.subtotal).toFormat()} <strong>
{Dinero(job.job_totals.totals.subtotal).toFormat()}
</strong>
</td> </td>
</tr> </tr>
<tr> <tr>
@@ -338,19 +340,25 @@ export function JobsTotalsTableComponent({ bodyshop, jobRO, job }) {
<tr> <tr>
<td>{t("jobs.labels.net_repairs")}</td> <td>{t("jobs.labels.net_repairs")}</td>
<td className="currency"> <td className="currency">
{Dinero(job.job_totals.totals.net_repairs).toFormat()} <strong>
{Dinero(job.job_totals.totals.net_repairs).toFormat()}
</strong>
</td> </td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
<JobCalculateTotals job={job} disabled={jobRO} /> <JobCalculateTotals job={job} disabled={jobRO} />
<Editor <Collapse>
value={{ <Collapse.Panel header="JSON Tree Totals">
CIECA: job.cieca_ttl && job.cieca_ttl.data, <Editor
ImEXCalc: job.job_totals, value={{
}} CIECA: job.cieca_ttl && job.cieca_ttl.data,
/> ImEXCalc: job.job_totals,
}}
/>
</Collapse.Panel>
</Collapse>
</div> </div>
</Col> </Col>
</Row> </Row>