feat: persist state at the org level when tab switching

This commit is contained in:
lemmyMwaura
2024-07-27 22:45:53 +03:00
parent 15749a1f52
commit ea39ef9269
4 changed files with 29 additions and 11 deletions
+2 -1
View File
@@ -29,6 +29,7 @@ import {
useUpdateOrgMembership
} from "@app/hooks/api";
import { usePopUp } from "@app/hooks/usePopUp";
import { TabSections } from "@app/types";
import { UserDetailsSection, UserOrgMembershipModal, UserProjectsSection } from "./components";
@@ -111,7 +112,7 @@ export const UserPage = withPermission(
type="submit"
leftIcon={<FontAwesomeIcon icon={faChevronLeft} />}
onClick={() => {
router.push(`/org/${orgId}/members`);
router.push(`/org/${orgId}/members?selectedTab=${TabSections.Member}`);
}}
className="mb-4"
>