Perbaikan Project PPOB
This commit is contained in:
parent
7ad15665cc
commit
beb3cdf6d1
|
@ -16,6 +16,7 @@ import {
|
||||||
CodepenOutlined,
|
CodepenOutlined,
|
||||||
WindowsOutlined,
|
WindowsOutlined,
|
||||||
AliyunOutlined,
|
AliyunOutlined,
|
||||||
|
SettingOutlined
|
||||||
} from "@ant-design/icons";
|
} from "@ant-design/icons";
|
||||||
import { observer } from "mobx-react-lite";
|
import { observer } from "mobx-react-lite";
|
||||||
import { useStore } from "../../utils/useStore";
|
import { useStore } from "../../utils/useStore";
|
||||||
|
@ -73,7 +74,7 @@ export const MenuList = observer((props) => {
|
||||||
</Menu.Item>
|
</Menu.Item>
|
||||||
)}
|
)}
|
||||||
{store.authentication.userData.role === "Admin" && (
|
{store.authentication.userData.role === "Admin" && (
|
||||||
<SubMenu key="config" icon={<MenuUnfoldOutlined />} title="Config">
|
<SubMenu key="config" icon={<SettingOutlined />} title="Config">
|
||||||
<Menu.Item key="partner">
|
<Menu.Item key="partner">
|
||||||
<Link to={LINKS.PARTNER}>
|
<Link to={LINKS.PARTNER}>
|
||||||
<WindowsOutlined />
|
<WindowsOutlined />
|
||||||
|
|
|
@ -50,7 +50,12 @@ export const Home = observer(() => {
|
||||||
<Row>
|
<Row>
|
||||||
<DropboxOutlined style={{ fontSize: 30 }} />
|
<DropboxOutlined style={{ fontSize: 30 }} />
|
||||||
<PageHeader title={<span>Total Keuntungan</span>}>
|
<PageHeader title={<span>Total Keuntungan</span>}>
|
||||||
<span>Rp.30.000.000</span>
|
<span>
|
||||||
|
{new Intl.NumberFormat("id-ID", {
|
||||||
|
style: "currency",
|
||||||
|
currency: "IDR",
|
||||||
|
}).format(store.authentication.profileData?.wallet || 0)}
|
||||||
|
</span>
|
||||||
</PageHeader>
|
</PageHeader>
|
||||||
</Row>
|
</Row>
|
||||||
</Card>
|
</Card>
|
||||||
|
@ -68,7 +73,12 @@ export const Home = observer(() => {
|
||||||
<Row>
|
<Row>
|
||||||
<DollarCircleOutlined style={{ fontSize: 30 }} />
|
<DollarCircleOutlined style={{ fontSize: 30 }} />
|
||||||
<PageHeader title={<span>Saldo</span>}>
|
<PageHeader title={<span>Saldo</span>}>
|
||||||
<span>Rp.200.000.000 </span>
|
<span>
|
||||||
|
{new Intl.NumberFormat("id-ID", {
|
||||||
|
style: "currency",
|
||||||
|
currency: "IDR",
|
||||||
|
}).format(store.authentication.profileData?.wallet || 0)}
|
||||||
|
</span>
|
||||||
</PageHeader>
|
</PageHeader>
|
||||||
</Row>
|
</Row>
|
||||||
</Card>
|
</Card>
|
||||||
|
@ -84,7 +94,7 @@ export const Home = observer(() => {
|
||||||
height: 200,
|
height: 200,
|
||||||
marginBottom: 10,
|
marginBottom: 10,
|
||||||
marginRight: 20,
|
marginRight: 20,
|
||||||
borderColor: "salmon"
|
borderColor: "salmon",
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Row>
|
<Row>
|
||||||
|
|
|
@ -82,12 +82,16 @@ export const MembershipModal = ({
|
||||||
name="phone_number"
|
name="phone_number"
|
||||||
label="Phone Number"
|
label="Phone Number"
|
||||||
rules={[
|
rules={[
|
||||||
{ required: true, message: "Please input Phone Number!" },
|
{
|
||||||
|
required: true,
|
||||||
|
message: "Please input Phone Number!",
|
||||||
|
},
|
||||||
{
|
{
|
||||||
pattern: /^(?:\d*)$/,
|
pattern: /^(?:\d*)$/,
|
||||||
message: "Value should contain just number",
|
message: "Value should contain just number",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
//pattern: /^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[!@#\$%\^&\*])(?=.{8,})/,
|
||||||
pattern: /^[\d]{0,12}$/,
|
pattern: /^[\d]{0,12}$/,
|
||||||
message: "Value should be less than 12 character",
|
message: "Value should be less than 12 character",
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue
Block a user