manage family active task forward and back btn fixed

This commit was merged in pull request #229.
This commit is contained in:
victorAnumudu
2023-07-01 16:25:34 +01:00
parent abbf60ad48
commit 8cbdb1b8a6
4 changed files with 12 additions and 6 deletions
+7 -2
View File
@@ -259,8 +259,13 @@ function ActiveJobs(props) {
<button
type="button"
className="min-w-[45px] h-auto text-[#374557] border border-sky-blue p-1 rounded-full"
onClick={() =>
navigate(props.details.pathname, { replace: true })
onClick={() =>{
if(props.details.pathname == '/manage-family'){
navigate(props.details.pathname, {state: { ...props.details.accountDetails }}, { replace: true })
}else{
navigate(props.details.pathname, { replace: true })
}
}
}
>
<svg