fix: revert buy product using modal

This commit is contained in:
2021-12-17 06:01:12 +07:00
committed by caturbgs
parent f427dc4990
commit 9490fd23b2
2 changed files with 34 additions and 54 deletions

View File

@@ -1,11 +1,11 @@
import React, { useState } from "react";
import { Button, Form, Input, message, Modal, Space, Table, Tag } from "antd";
import { observer } from "mobx-react-lite";
import { ExclamationCircleOutlined } from "@ant-design/icons";
import { useHistory } from "react-router-dom";
import { useStore } from "../utils/useStore";
import { LINKS } from "../routes/app";
import { TopupsaldoModal } from "./TopupsaldoModal";
import React, {useState} from "react";
import {Button, Form, Input, message, Modal, Space, Table, Tag} from "antd";
import {observer} from "mobx-react-lite";
import {ExclamationCircleOutlined} from "@ant-design/icons";
import {useHistory} from "react-router-dom";
import {useStore} from "../utils/useStore";
import {LINKS} from "../routes/app";
import {TopupsaldoModal} from "./TopupsaldoModal";
export const SupplierComponent = observer((props) => {
const store = useStore();
@@ -66,12 +66,10 @@ export const SupplierComponent = observer((props) => {
key: ["coa", "amount"],
width: "20%",
render: (text, record) =>
text
? new Intl.NumberFormat("id-ID", {
style: "currency",
currency: "IDR",
}).format(text)
: "-",
new Intl.NumberFormat("id-ID", {
style: "currency",
currency: "IDR",
}).format(text),
},
{
title: "Status",