Creative
A visual overview showing what the service includes and how it works.
Benefits
Key advantages like saving time, cutting costs, or improving results.
Description
A brief explanation of the service, who it's for, and what it solves.
<table className='d-flex justify-content-center w-100'>
<LoadingRow />
</table>
import { useErrorHandler, useSuccessHandler } from "../../hooks/useApiHandlers"
import { toast } from "react-toastify"
export const submitForm = (data, parentCallback, queryClient, postBenefit, editProject, history, featureResponse) => {
const idBenefits = data?.project?.attributes?.benefits?.data.map((value) => value?.id)
const db_submit = {
benefits: idBenefits || []
}
const db_submitBenefit = {
text: data?.text,
title: data?.title,
image: featureResponse?.[0]?.id || item?.attributes?.image?.data?.id
}
postBenefit(db_submitBenefit, {
onSuccess: (response) => {
db_submit.benefits = [...db_submit.benefits, response.data.id];
editProject(db_submit, {
onSuccess: () => {
toast.success('Add Benefit Project Successfully!')
setTimeout(() => {
history.push("/apps/project-benefit");
}, 2500);
},
onError: () => toast.error('Add Benefit Project false!'),
})
},
onError: () => toast.error('Create Benefit false!'),
});
import { useErrorHandler, useSuccessHandler } from "../../hooks/useApiHandlers"
import { toast } from "react-toastify"
export const submitForm = (data, parentCallback, queryClient, postBenefit, editProject, history, featureResponse) => {
const idBenefits = data?.project?.attributes?.benefits?.data.map((value) => value?.id)
const db_submit = {
benefits: idBenefits || []
}
const db_submitBenefit = {
text: data?.text,
title: data?.title,
image: featureResponse?.[0]?.id || item?.attributes?.image?.data?.id
}
postBenefit(db_submitBenefit, {
onSuccess: (response) => {
db_submit.benefits = [...db_submit.benefits, response.data.id];
editProject(db_submit, {
onSuccess: () => {
toast.success('Add Benefit Project Successfully!')
setTimeout(() => {
history.push("/apps/project-benefit");
}, 2500);
},
onError: () => toast.error('Add Benefit Project false!'),
})
},
onError: () => toast.error('Create Benefit false!'),
});
Terms of Service
Terms and conditions for using the service.
Step by Step
A simple outline of how the service is delivered from start to finish.
Categories & Tags
Service classification and relevant tags for better discovery.
Categories
Tags
Other Services
sasasasqweqweqw
sasasas
Recently, we discovered how client loving working with us by their 5 star recommedation
