From 068444fb073d5974c4a86576159f0d842687f3c2 Mon Sep 17 00:00:00 2001 From: caturbgs Date: Fri, 17 Dec 2021 02:20:50 +0700 Subject: [PATCH] feat: remove action column and handler filter modal product --- src/component/ProductComponent.js | 26 ++++++-------------------- src/pages/Product/Product.js | 2 -- src/store/product.js | 3 ++- 3 files changed, 8 insertions(+), 23 deletions(-) diff --git a/src/component/ProductComponent.js b/src/component/ProductComponent.js index 09aca03..5ec507a 100644 --- a/src/component/ProductComponent.js +++ b/src/component/ProductComponent.js @@ -1,5 +1,5 @@ import React, {useState} from "react"; -import {Button, Col, Form, Input, message, Modal, Row, Select, Space, Table, Tag, Typography} from "antd"; +import {Button, Col, Form, Input, message, Modal, Row, Select, Table, Tag, Typography} from "antd"; import {observer} from "mobx-react-lite"; import {ExclamationCircleOutlined} from "@ant-design/icons"; import {useHistory} from "react-router-dom"; @@ -81,23 +81,7 @@ export const ProductComponent = observer((props) => { {record?.status === "ACTIVE" ? " Ya" : "Tidak"} ), - }, - { - title: "Action", - key: "action", - render: (text, record) => ( - - - - - ), - }, + } ]; const deleteData = async (id) => { @@ -331,8 +315,10 @@ export const ProductComponent = observer((props) => {