Pages Membership
This commit is contained in:
@@ -39,7 +39,6 @@ export const Membership = observer(() => {
|
||||
const [confirmLoading, setConfirmLoading] = useState(false);
|
||||
const [isLoading, setIsLoading] = useState(false);
|
||||
|
||||
|
||||
useEffect(() => {
|
||||
const init = async () => {
|
||||
try {
|
||||
@@ -89,11 +88,11 @@ export const Membership = observer(() => {
|
||||
setConfirmLoading(true);
|
||||
try {
|
||||
data.destination = destination;
|
||||
if(data.amount) {
|
||||
if (data.amount) {
|
||||
data = {
|
||||
...data,
|
||||
amount: Number(data.amount)
|
||||
}
|
||||
amount: Number(data.amount),
|
||||
};
|
||||
}
|
||||
|
||||
(await store.authentication.userData.role) === "Admin"
|
||||
@@ -155,7 +154,7 @@ export const Membership = observer(() => {
|
||||
<Button
|
||||
onClick={() => {
|
||||
setDestination(record?.id);
|
||||
console.log(record?.id)
|
||||
console.log(record?.id);
|
||||
setIsVisibleTopUpModal(true);
|
||||
}}
|
||||
>
|
||||
@@ -274,6 +273,7 @@ export const Membership = observer(() => {
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
return (
|
||||
<div className={["ppob-container"].join(" ")}>
|
||||
<BreadcumbComponent data={routeData} />
|
||||
@@ -435,7 +435,7 @@ export const Membership = observer(() => {
|
||||
label="Amount"
|
||||
rules={[{ required: true, message: "Please input amount!" }]}
|
||||
>
|
||||
<Input/>
|
||||
<Input />
|
||||
</Form.Item>
|
||||
</Form>
|
||||
</Modal>
|
||||
|
||||
Reference in New Issue
Block a user