Repair Menu
This commit is contained in:
		@@ -332,6 +332,29 @@ export const Membership = observer(() => {
 | 
			
		||||
                                Saldo System : {item.coa.amount}
 | 
			
		||||
                              </small>{" "}
 | 
			
		||||
                              <br />
 | 
			
		||||
                              <Button
 | 
			
		||||
                              style={{marginRight:10}}
 | 
			
		||||
                                onClick={() => {
 | 
			
		||||
                                  setDestination(item?.id);
 | 
			
		||||
                                  console.log(item?.id);
 | 
			
		||||
                                  setIsVisibleTopUpModal(true);
 | 
			
		||||
                                }}
 | 
			
		||||
                              >
 | 
			
		||||
                                <DownloadOutlined /> Top Up Saldo
 | 
			
		||||
                              </Button>
 | 
			
		||||
                              <Button
 | 
			
		||||
                                onClick={async () => {
 | 
			
		||||
                                  await store.transaction.getDataHistoryTopUp(
 | 
			
		||||
                                    item.id
 | 
			
		||||
                                  );
 | 
			
		||||
                                  history.push(
 | 
			
		||||
                                    LINKS.USER_DETAIL.replace(":id", item.id)
 | 
			
		||||
                                  );
 | 
			
		||||
                                  console.log(item.id);
 | 
			
		||||
                                }}
 | 
			
		||||
                              >
 | 
			
		||||
                                Detail
 | 
			
		||||
                              </Button>
 | 
			
		||||
                            </p>
 | 
			
		||||
                          </div>
 | 
			
		||||
                        }
 | 
			
		||||
@@ -343,7 +366,7 @@ export const Membership = observer(() => {
 | 
			
		||||
                            margin: 0,
 | 
			
		||||
                          }}
 | 
			
		||||
                        >
 | 
			
		||||
                          <Button
 | 
			
		||||
                          {/* <Button
 | 
			
		||||
                            type={
 | 
			
		||||
                              item?.isActive === true ? "danger" : "primary"
 | 
			
		||||
                            }
 | 
			
		||||
@@ -352,7 +375,7 @@ export const Membership = observer(() => {
 | 
			
		||||
                            }
 | 
			
		||||
                          >
 | 
			
		||||
                            {item?.isActive === true ? "Inactive" : "Active"}
 | 
			
		||||
                          </Button>
 | 
			
		||||
                          </Button> */}
 | 
			
		||||
                        </p>
 | 
			
		||||
                      </div>
 | 
			
		||||
                    </List.Item>
 | 
			
		||||
 
 | 
			
		||||
@@ -36,7 +36,7 @@ export class Product {
 | 
			
		||||
    async getData() {
 | 
			
		||||
        try {
 | 
			
		||||
            const response = await http.get(`/product/all?supplier=${this.filterSupplier}&sub-category=${this.filterSubCategory}&page=${this.page}&pageSize=${this.pageSize}`);
 | 
			
		||||
            console.log(response)
 | 
			
		||||
            //console.log(response)
 | 
			
		||||
            this.data = response.body.data.map((item, idx) => {
 | 
			
		||||
                item.key = idx;
 | 
			
		||||
                return item
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user