Merge branch 'main' into 'devops-production'

Main

See merge request empatnusabangsa/ppob/ppob-frontend!109
This commit is contained in:
ilham dwi pratama 2022-01-29 02:24:38 +00:00
commit 9ce3338fb8
5 changed files with 125 additions and 5 deletions

View File

@ -150,7 +150,6 @@ export const ProductComponent = observer((props) => {
message.error("Gagal menghapus"); message.error("Gagal menghapus");
} }
}; };
const handleDelete = (id) => { const handleDelete = (id) => {
Modal.confirm({ Modal.confirm({
title: "Are you sure delete this record?", title: "Are you sure delete this record?",

View File

@ -372,7 +372,7 @@ export const Konfirmasi = observer(() => {
: "Aktif"} : "Aktif"}
</Tag> </Tag>
)} )}
<Button {item.user_detail?.image_identity !== "" ? <Button
style={ style={
item.is_active === true item.is_active === true
? { ? {
@ -386,7 +386,8 @@ export const Konfirmasi = observer(() => {
}} }}
> >
Foto Identitas Foto Identitas
</Button> </Button>: ""}
{item.user_detail?.image_store !== '""' ? ( {item.user_detail?.image_store !== '""' ? (
<Button <Button
style={ style={

View File

@ -0,0 +1,121 @@
import React from "react";
import {Button, Card, Col, Dropdown, Menu, message, Modal, Row, Space,} from "antd";
import {DownOutlined, TabletOutlined, UserOutlined} from "@ant-design/icons";
export const Pulsa = () => {
function handleMenuClick(e) {
message.info("Click on menu item.");
console.log("click", e);
}
const menu = (
<Menu onClick={handleMenuClick}>
<Menu.Item key="1" icon={<UserOutlined/>}>
1st menu item
</Menu.Item>
<Menu.Item key="2" icon={<UserOutlined/>}>
2nd menu item
</Menu.Item>
<Menu.Item key="3" icon={<UserOutlined/>}>
3rd menu item
</Menu.Item>
</Menu>
);
function success() {
Modal.success({
content: 'some messages...some messages...',
});
}
const dataCard = [
{
title: "DATA AXIS BRONET 2GB-60HR",
price: "Harga : Rp.6.000",
},
{
title: "DATA AXIS BRONET 2GB-60HR",
price: "Harga : Rp.6.000",
},
{
title: "DATA AXIS BRONET 2GB-60HR",
price: "Harga : Rp.6.000",
},
{
title: "DATA AXIS BRONET 2GB-60HR",
price: "Harga : Rp.6.000",
},
{
title: "DATA AXIS BRONET 2GB-60HR",
price: "Harga : Rp.6.000",
},
{
title: "DATA AXIS BRONET 2GB-60HR",
price: "Harga : Rp.6.000",
},
{
title: "DATA AXIS BRONET 2GB-60HR",
price: "Harga : Rp.6.000",
},
{
title: "DATA AXIS BRONET 2GB-60HR",
price: "Harga : Rp.6.000",
},
{
title: "DATA AXIS BRONET 2GB-60HR",
price: "Harga : Rp.6.000",
},
{
title: "DATA AXIS BRONET 2GB-60HR",
price: "Harga : Rp.6.000",
},
]
return (
<div>
<Row>
<span style={{fontWeight: "bold", marginBottom: "10px"}}>
Sub-Category
</span>
</Row>
<Row>
<Space wrap>
<Dropdown overlay={menu}>
<Button
style={{
marginBottom: "20px",
color: "grey",
}}
>
<TabletOutlined/>
Select sub-Category
<DownOutlined/>
</Button>
</Dropdown>
</Space>
</Row>
<Row>
<span style={{fontWeight: "bold", marginBottom: "10px"}}>
Produk & Nominal
</span>
</Row>
<Row>
{dataCard.map((item, index) => (
<Col key={index} xs={24} md={16} lg={8}>
<Card onClick={success}>
<span style={{color: "black"}}>{item.title}</span>
<br/>
<span style={{color: "grey", fontSize: 10}}>{item.price}</span>
</Card>
</Col>
))}
</Row>
<Col style={{textAlign: "right"}}>
<Button style={{backgroundColor: "#2D9CDB", color: "white"}}>
Beli Sekarang
</Button>
</Col>
</div>
);
};

View File

@ -2,7 +2,6 @@ import {makeAutoObservable, runInAction} from "mobx";
import {TokenUtil} from "../utils/token"; import {TokenUtil} from "../utils/token";
import {http} from "../utils/http"; import {http} from "../utils/http";
export class Authentication { export class Authentication {
isLoggedIn = false; isLoggedIn = false;
isLoginLoading = false; isLoginLoading = false;