Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 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>
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -8,12 +8,12 @@ import queryKeys from '../../services/queryKeys';
|
|||||||
|
|
||||||
|
|
||||||
const linksValidationSchema = Yup.object().shape({
|
const linksValidationSchema = Yup.object().shape({
|
||||||
// facebook_url: Yup.string().required("facebook is required"),
|
facebook_url: Yup.string().required("facebook is required"),
|
||||||
// twitter_url: Yup.string().required("twitter is required"),
|
twitter_url: Yup.string().required("twitter is required"),
|
||||||
// blogger_url: Yup.string().required("blog is required"),
|
blogger_url: Yup.string().required("blog is required"),
|
||||||
// google_url: Yup.string().required("google is required"),
|
google_url: Yup.string().required("google is required"),
|
||||||
// linked_url: Yup.string().required("linkedin is required"),
|
linked_url: Yup.string().required("linkedin is required"),
|
||||||
// website_url: Yup.string().required("website is required"),
|
website_url: Yup.string().required("website is required"),
|
||||||
})
|
})
|
||||||
|
|
||||||
export default function LinksForm({data}) {
|
export default function LinksForm({data}) {
|
||||||
@@ -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