payment table updated
This commit was merged in pull request #120.
This commit is contained in:
@@ -64,8 +64,8 @@ export default function PaymentReportTable() {
|
||||
return (
|
||||
<tr key={index}>
|
||||
<td>{item?.added}</td>
|
||||
<td>{item?.name}</td>
|
||||
<td>{item?.amount}</td>
|
||||
<td>{item?.option_name}</td>
|
||||
<td>{item?.currency}{item?.amount}</td>
|
||||
<td>{item?.status}</td>
|
||||
</tr>
|
||||
)
|
||||
|
||||
@@ -8,12 +8,12 @@ import queryKeys from '../../services/queryKeys';
|
||||
|
||||
|
||||
const linksValidationSchema = Yup.object().shape({
|
||||
// facebook_url: Yup.string().required("facebook is required"),
|
||||
// twitter_url: Yup.string().required("twitter is required"),
|
||||
// blogger_url: Yup.string().required("blog is required"),
|
||||
// google_url: Yup.string().required("google is required"),
|
||||
// linked_url: Yup.string().required("linkedin is required"),
|
||||
// website_url: Yup.string().required("website is required"),
|
||||
facebook_url: Yup.string().required("facebook is required"),
|
||||
twitter_url: Yup.string().required("twitter is required"),
|
||||
blogger_url: Yup.string().required("blog is required"),
|
||||
google_url: Yup.string().required("google is required"),
|
||||
linked_url: Yup.string().required("linkedin is required"),
|
||||
website_url: Yup.string().required("website is required"),
|
||||
})
|
||||
|
||||
export default function LinksForm({data}) {
|
||||
@@ -73,10 +73,10 @@ export default function LinksForm({data}) {
|
||||
let reqData = {
|
||||
token: localStorage.getItem('token'), // USER TOKEN
|
||||
uid: localStorage.getItem('uid'), // USER UID
|
||||
...infoToUpdate
|
||||
url_list: {...infoToUpdate}
|
||||
}
|
||||
console.log(reqData)
|
||||
// updateLinksMutation.mutate(reqData)
|
||||
// console.log(reqData)
|
||||
updateLinksMutation.mutate(reqData)
|
||||
}
|
||||
|
||||
return (
|
||||
@@ -137,7 +137,7 @@ export default function LinksForm({data}) {
|
||||
</button>
|
||||
</div>
|
||||
<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) && (
|
||||
<div className="col-12">
|
||||
<p className={`p-2 text-center ${updateLinksMutation.isSuccess ? 'text-success' : 'text-danger'}`}>
|
||||
|
||||
@@ -105,7 +105,7 @@ export const updateLinks = (reqData) => {
|
||||
let postData = {
|
||||
...reqData,
|
||||
}
|
||||
return null //postAuxEnd(`/panel/account/links-update`, postData, false)
|
||||
return postAuxEnd(`/panel/account/profilelinks-update`, postData, false)
|
||||
}
|
||||
|
||||
// FUNCTION TO GET PRODUCT BY ID
|
||||
|
||||
Reference in New Issue
Block a user