From 759269cd74360fd1d775f8fcbf2140bf711e1bd2 Mon Sep 17 00:00:00 2001 From: Ebube Date: Wed, 31 May 2023 05:59:45 +0100 Subject: [PATCH] . --- src/components/FamilyAcc/FamilyManageTabs.jsx | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/src/components/FamilyAcc/FamilyManageTabs.jsx b/src/components/FamilyAcc/FamilyManageTabs.jsx index e14c6fb..5f13fc3 100644 --- a/src/components/FamilyAcc/FamilyManageTabs.jsx +++ b/src/components/FamilyAcc/FamilyManageTabs.jsx @@ -4,7 +4,7 @@ import React, { useMemo, useRef, useState, - forwardRef + forwardRef, } from "react"; import LoadingSpinner from "../Spinners/LoadingSpinner"; import profile from "../../assets/images/profile-info-profile.png"; @@ -83,8 +83,8 @@ export default function FamilyManageTabs({ const accountRef = useRef(); // to handle printing const useHandlePrint = useReactToPrint({ - content: () => accountRef.current, - }); + content: () => accountRef.current, + }); return (
)} {name === "Account" && ( - <> - )} {name === "Profile" && } @@ -263,20 +261,23 @@ const Account = forwardRef(({ familyDetails, myRef, handlePrint }) => {
-
); -}) +}); function Profile() { return <>Profile; -- 2.34.1