mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
feat: update url onvalue change
This commit is contained in:
@@ -22,12 +22,19 @@ export const MembersPage = withProjectPermission(
|
||||
}
|
||||
}, [selectedTab]);
|
||||
|
||||
const updateSelectedTab = (tab: TabSections) => {
|
||||
router.push({
|
||||
pathname: router.pathname,
|
||||
query: { ...router.query, selectedTab: tab },
|
||||
});
|
||||
}
|
||||
|
||||
return (
|
||||
<div className="container mx-auto flex flex-col justify-between bg-bunker-800 text-white">
|
||||
<div className="mx-auto mb-6 w-full max-w-7xl py-6 px-6">
|
||||
<div>{selectedTab}</div>
|
||||
<p className="mr-4 mb-4 text-3xl font-semibold text-white">Project Access Control</p>
|
||||
<Tabs value={activeTab} onValueChange={setActiveTab}>
|
||||
<Tabs value={activeTab} onValueChange={updateSelectedTab}>
|
||||
<TabList>
|
||||
<Tab value={TabSections.Member}>Users</Tab>
|
||||
<Tab value={TabSections.Identities}>
|
||||
|
||||
Reference in New Issue
Block a user