Skip to content

Commit 78c76c3

Browse files
committed
Set URL anchor on API Keys tab
1 parent 4317a2b commit 78c76c3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

horreum-web/src/domain/user/UserSettings.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ import {
2323
PageSection,
2424
Spinner,
2525
EmptyStateHeader,
26-
Tab,
2726
} from "@patternfly/react-core"
2827

2928
import { UserIcon } from "@patternfly/react-icons"
@@ -35,6 +34,7 @@ import ManagedTeams from "./ManagedTeams"
3534
import {AppContext} from "../../context/appContext";
3635
import {AppContextType} from "../../context/@types/appContextTypes";
3736
import ApiKeys from "./ApiKeys";
37+
import {FragmentTab} from "../../components/FragmentTabs";
3838

3939
export const UserProfileLink = () => {
4040
const profile = useSelector(userProfileSelector)
@@ -210,9 +210,9 @@ export function UserSettings() {
210210
</EmptyState>
211211
)}
212212
</SavedTab>
213-
<Tab title="API keys" eventKey="api-keys">
213+
<FragmentTab title="API keys" fragment="api-keys">
214214
<ApiKeys/>
215-
</Tab>
215+
</FragmentTab>
216216
{managedTeams.length > 0 ? (
217217
<SavedTab
218218
title="Managed teams"

0 commit comments

Comments
 (0)