Merge branch 'parent-kid-wallet' of WrenchBoard/Users-Wrench into master
This commit is contained in:
@@ -15,7 +15,7 @@ function FamilyWallet({familyData}) {
|
|||||||
|
|
||||||
useEffect(()=>{
|
useEffect(()=>{
|
||||||
setFamilyWallet({loading:true, data: []})
|
setFamilyWallet({loading:true, data: []})
|
||||||
apiUrl.getFamilyWallet({family_uid:familyData?.uid}).then(res => {
|
apiUrl.getKidWallets({family_uid:familyData?.uid}).then(res => {
|
||||||
setFamilyWallet({loading:false, data: res?.data?.result_list || []})
|
setFamilyWallet({loading:false, data: res?.data?.result_list || []})
|
||||||
console.log('familyData', familyData, res?.data?.result_list)
|
console.log('familyData', familyData, res?.data?.result_list)
|
||||||
|
|
||||||
|
|||||||
@@ -248,13 +248,13 @@ const FamilyForm = ({
|
|||||||
}) => {
|
}) => {
|
||||||
return (
|
return (
|
||||||
<div className="logout-modal-wrapper w-11/12 lg:w-[460px] bg-white dark:bg-dark-white lg:rounded-2xl overflow-y-auto">
|
<div className="logout-modal-wrapper w-11/12 lg:w-[460px] bg-white dark:bg-dark-white lg:rounded-2xl overflow-y-auto">
|
||||||
<div className="logout-modal-header w-full flex items-center justify-between lg:px-10 lg:py-8 px-[30px] py-[23px] border-b dark:border-[#5356fb29] border-light-purple dark:border-[#5356fb29] ">
|
<div className="modal-header-con">
|
||||||
<h1 className="text-26 font-bold text-dark-gray dark:text-white tracking-wide">
|
<h1 className="modal-title">
|
||||||
Add Members
|
Add Members
|
||||||
</h1>
|
</h1>
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
className="text-[#374557] dark:text-red-500"
|
className="modal-close-btn"
|
||||||
onClick={popUpHandler}
|
onClick={popUpHandler}
|
||||||
>
|
>
|
||||||
<CloseIcon />
|
<CloseIcon />
|
||||||
@@ -267,8 +267,8 @@ const FamilyForm = ({
|
|||||||
name="first_name"
|
name="first_name"
|
||||||
type="text"
|
type="text"
|
||||||
parentClass="flex items-center gap-1 w-full"
|
parentClass="flex items-center gap-1 w-full"
|
||||||
labelClass="flex-[0.2] mb-0"
|
labelClass="flex-[0.4] mb-0"
|
||||||
inputClass="flex-[0.8] input-curve lg border border-[#dce4e9]"
|
inputClass="flex-[0.6] input-curve lg border border-[#dce4e9]"
|
||||||
fieldClass="px-2"
|
fieldClass="px-2"
|
||||||
value={first_name}
|
value={first_name}
|
||||||
inputHandler={inputHandler}
|
inputHandler={inputHandler}
|
||||||
@@ -279,8 +279,8 @@ const FamilyForm = ({
|
|||||||
name="last_name"
|
name="last_name"
|
||||||
type="text"
|
type="text"
|
||||||
parentClass="flex items-center gap-1 w-full"
|
parentClass="flex items-center gap-1 w-full"
|
||||||
labelClass="flex-[0.2] mb-0"
|
labelClass="flex-[0.4] mb-0"
|
||||||
inputClass="flex-[0.8] input-curve lg border border-[#dce4e9]"
|
inputClass="flex-[0.6] input-curve lg border border-[#dce4e9]"
|
||||||
fieldClass="px-2"
|
fieldClass="px-2"
|
||||||
value={last_name}
|
value={last_name}
|
||||||
inputHandler={inputHandler}
|
inputHandler={inputHandler}
|
||||||
@@ -289,7 +289,7 @@ const FamilyForm = ({
|
|||||||
{/* Age dropdown */}
|
{/* Age dropdown */}
|
||||||
<div className="">
|
<div className="">
|
||||||
<label
|
<label
|
||||||
className="input-label text-[#181c32] dark:text-white text-[15px] font-semibold"
|
className="job-label"
|
||||||
htmlFor="age-selection"
|
htmlFor="age-selection"
|
||||||
>
|
>
|
||||||
Birthday: (Year/Month)
|
Birthday: (Year/Month)
|
||||||
|
|||||||
@@ -1174,7 +1174,7 @@ class usersService {
|
|||||||
return this.postAuxEnd("/suggeststatus", postData);
|
return this.postAuxEnd("/suggeststatus", postData);
|
||||||
}
|
}
|
||||||
|
|
||||||
// FUNCTION TO GET FAMILY WALLET
|
// FUNCTION TO GET FAMILY WALLET AS A KID
|
||||||
getFamilyWallet(reqData) {
|
getFamilyWallet(reqData) {
|
||||||
var postData = {
|
var postData = {
|
||||||
uid: localStorage.getItem("uid"),
|
uid: localStorage.getItem("uid"),
|
||||||
@@ -1186,6 +1186,18 @@ class usersService {
|
|||||||
return this.postAuxEnd("/familywallet", postData);
|
return this.postAuxEnd("/familywallet", postData);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// FUNCTION TO GET FAMILY WALLET AS A PARENT
|
||||||
|
getKidWallets(reqData) {
|
||||||
|
var postData = {
|
||||||
|
uid: localStorage.getItem("uid"),
|
||||||
|
member_id: localStorage.getItem("member_id"),
|
||||||
|
sessionid: localStorage.getItem("session_token"),
|
||||||
|
action: apiConst.WRENCHBOARD_FAMILY_WALLET,
|
||||||
|
...reqData,
|
||||||
|
};
|
||||||
|
return this.postAuxEnd("/kidwallets", postData);
|
||||||
|
}
|
||||||
|
|
||||||
// FUNCTION TO START FAMILY TRANSFER
|
// FUNCTION TO START FAMILY TRANSFER
|
||||||
familyTransferStart(reqData) {
|
familyTransferStart(reqData) {
|
||||||
var postData = {
|
var postData = {
|
||||||
|
|||||||
Reference in New Issue
Block a user