Added config provider with default small text. Replcaed all datepicker components to add proper format. BOD-166 BOD-246
This commit is contained in:
@@ -1,12 +1,13 @@
|
||||
import { useMutation } from "@apollo/react-hooks";
|
||||
import { Button, notification, Popover } from "antd";
|
||||
import React, { useState } from "react";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { Button, notification, DatePicker, Popover } from "antd";
|
||||
import { useMutation } from "@apollo/react-hooks";
|
||||
import { MUTATION_BACKORDER_PART_LINE } from "../../graphql/parts-orders.queries";
|
||||
import { selectBodyshop } from "../../redux/user/user.selectors";
|
||||
import { connect } from "react-redux";
|
||||
import { createStructuredSelector } from "reselect";
|
||||
import { logImEXEvent } from "../../firebase/firebase.utils";
|
||||
import { MUTATION_BACKORDER_PART_LINE } from "../../graphql/parts-orders.queries";
|
||||
import { selectBodyshop } from "../../redux/user/user.selectors";
|
||||
import FormDatePicker from "../form-date-picker/form-date-picker.component";
|
||||
|
||||
const mapStateToProps = createStructuredSelector({
|
||||
bodyshop: selectBodyshop,
|
||||
@@ -74,7 +75,7 @@ export function PartsOrderLineBackorderButton({
|
||||
|
||||
const popContent = (
|
||||
<div>
|
||||
<DatePicker onChange={(e) => setEta(e)} />
|
||||
<FormDatePicker onChange={(e) => setEta(e)} />
|
||||
<Button type="primary" disabled={eta === null} onClick={handleSave}>
|
||||
{t("parts_orders.actions.backordered")}
|
||||
</Button>
|
||||
|
||||
Reference in New Issue
Block a user