Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| ed38e0db98 | |||
| 351f027a6f | |||
| 20d56ee307 | |||
| f5c798c6c1 |
@@ -64,8 +64,8 @@ export default function PaymentReportTable() {
|
|||||||
return (
|
return (
|
||||||
<tr key={index}>
|
<tr key={index}>
|
||||||
<td>{item?.added}</td>
|
<td>{item?.added}</td>
|
||||||
<td>{item?.name}</td>
|
<td>{item?.option_name}</td>
|
||||||
<td>{item?.amount}</td>
|
<td>{item?.currency}{item?.amount}</td>
|
||||||
<td>{item?.status}</td>
|
<td>{item?.status}</td>
|
||||||
</tr>
|
</tr>
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -73,10 +73,10 @@ export default function LinksForm({data}) {
|
|||||||
let reqData = {
|
let reqData = {
|
||||||
token: localStorage.getItem('token'), // USER TOKEN
|
token: localStorage.getItem('token'), // USER TOKEN
|
||||||
uid: localStorage.getItem('uid'), // USER UID
|
uid: localStorage.getItem('uid'), // USER UID
|
||||||
...infoToUpdate
|
url_list: {...infoToUpdate}
|
||||||
}
|
}
|
||||||
console.log(reqData)
|
// console.log(reqData)
|
||||||
// updateLinksMutation.mutate(reqData)
|
updateLinksMutation.mutate(reqData)
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
@@ -137,7 +137,7 @@ export default function LinksForm({data}) {
|
|||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<div className="modal-body">
|
<div className="modal-body">
|
||||||
<h5 className="text-center" style={{fontSize: '18px'}}>Are you sure, you want to update? gg</h5>
|
<h5 className="text-center" style={{fontSize: '18px'}}>Are you sure, you want to update?</h5>
|
||||||
{(updateLinksMutation.error || updateLinksMutation.isSuccess) && (
|
{(updateLinksMutation.error || updateLinksMutation.isSuccess) && (
|
||||||
<div className="col-12">
|
<div className="col-12">
|
||||||
<p className={`p-2 text-center ${updateLinksMutation.isSuccess ? 'text-success' : 'text-danger'}`}>
|
<p className={`p-2 text-center ${updateLinksMutation.isSuccess ? 'text-success' : 'text-danger'}`}>
|
||||||
|
|||||||
@@ -105,7 +105,7 @@ export const updateLinks = (reqData) => {
|
|||||||
let postData = {
|
let postData = {
|
||||||
...reqData,
|
...reqData,
|
||||||
}
|
}
|
||||||
return null //postAuxEnd(`/panel/account/links-update`, postData, false)
|
return postAuxEnd(`/panel/account/profilelinks-update`, postData, false)
|
||||||
}
|
}
|
||||||
|
|
||||||
// FUNCTION TO GET PRODUCT BY ID
|
// FUNCTION TO GET PRODUCT BY ID
|
||||||
|
|||||||
Reference in New Issue
Block a user