feature/feature/IO-3554-Form-Row-Layout - Responsive overhaul
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { useMutation } from "@apollo/client/react";
|
||||
import { Button, Card, Col, Row, Table } from "antd";
|
||||
import { Button, Card, Col, Row } from "antd";
|
||||
import ResponsiveTable from "../responsive-table/responsive-table.component";
|
||||
import dayjs from "../../utils/day";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { UPDATE_PARTS_DISPATCH_LINE } from "../../graphql/parts-dispatch.queries";
|
||||
@@ -67,7 +68,12 @@ export default function PartsDispatchExpander({ dispatch }) {
|
||||
<Card>
|
||||
<Row gutter={[16, 16]}>
|
||||
<Col span={24}>
|
||||
<Table rowKey={"id"} dataSource={dispatch.parts_dispatch_lines} columns={columns} />
|
||||
<ResponsiveTable
|
||||
rowKey={"id"}
|
||||
dataSource={dispatch.parts_dispatch_lines}
|
||||
columns={columns}
|
||||
mobileColumnKeys={["quantity", "joblineid", "accepted_at"]}
|
||||
/>
|
||||
</Col>
|
||||
</Row>
|
||||
</Card>
|
||||
|
||||
Reference in New Issue
Block a user