feature/feature/IO-3554-Form-Row-Layout - Responsive overhaul
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
import { SyncOutlined } from "@ant-design/icons";
|
||||
import { Button, Card, Input, Space, Table, Tag } from "antd";
|
||||
import { Button, Card, Input, Space, Tag } from "antd";
|
||||
import queryString from "query-string";
|
||||
import { useState } from "react";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { useLocation } from "react-router-dom";
|
||||
import { alphaSort } from "../../utils/sorters";
|
||||
import ResponsiveTable from "../responsive-table/responsive-table.component";
|
||||
|
||||
export default function VendorsListComponent({ handleNewVendor, loading, handleOnRowClick, vendors, refetch }) {
|
||||
const search = queryString.parse(useLocation().search);
|
||||
@@ -85,10 +86,11 @@ export default function VendorsListComponent({ handleNewVendor, loading, handleO
|
||||
</Space>
|
||||
}
|
||||
>
|
||||
<Table
|
||||
<ResponsiveTable
|
||||
loading={loading}
|
||||
pagination={{ placement: "top" }}
|
||||
columns={columns}
|
||||
mobileColumnKeys={["name", "phone", "city"]}
|
||||
rowKey="id"
|
||||
onChange={handleTableChange}
|
||||
dataSource={filteredVendors}
|
||||
|
||||
Reference in New Issue
Block a user