Skip to content

Commit 79ff5de

Browse files
authored
Make "Personal Info" the default index route (keycloak#20887)
1 parent 9425432 commit 79ff5de

File tree

4 files changed

+5
-19
lines changed

4 files changed

+5
-19
lines changed

js/apps/account-ui/public/locales/en/translation.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,5 @@
158158
"updateSuccess": "Resource successfully updated.",
159159
"user": "User",
160160
"username": "Username",
161-
"usernamePlaceholder": "Username or email",
162-
"welcomeMessage": "Welcome to Keycloak Account Management."
161+
"usernamePlaceholder": "Username or email"
163162
}

js/apps/account-ui/src/root/PageNav.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ type MenuItem = RootMenuItem | MenuItemWithChildren;
3535
const menuItems: MenuItem[] = [
3636
{
3737
label: "personalInfo",
38-
path: "personal-info",
38+
path: "/",
3939
},
4040
{
4141
label: "accountSecurity",

js/apps/account-ui/src/root/RootIndex.tsx

Lines changed: 0 additions & 7 deletions
This file was deleted.

js/apps/account-ui/src/routes.tsx

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import type { IndexRouteObject, RouteObject } from "react-router-dom";
33

44
import { ErrorPage } from "./root/ErrorPage";
55
import { Root } from "./root/Root";
6-
import { RootIndex } from "./root/RootIndex";
76

87
const DeviceActivity = lazy(() => import("./account-security/DeviceActivity"));
98
const LinkedAccounts = lazy(() => import("./account-security/LinkedAccounts"));
@@ -38,27 +37,22 @@ export const GroupsRoute: RouteObject = {
3837
element: <Groups />,
3938
};
4039

41-
export const PersonalInfoRoute: RouteObject = {
42-
path: "personal-info",
43-
element: <PersonalInfo />,
44-
};
45-
4640
export const ResourcesRoute: RouteObject = {
4741
path: "resources",
4842
element: <Resources />,
4943
};
5044

51-
export const RootIndexRoute: IndexRouteObject = {
45+
export const PersonalInfoRoute: IndexRouteObject = {
5246
index: true,
53-
element: <RootIndex />,
47+
element: <PersonalInfo />,
5448
};
5549

5650
export const RootRoute: RouteObject = {
5751
path: "/",
5852
element: <Root />,
5953
errorElement: <ErrorPage />,
6054
children: [
61-
RootIndexRoute,
55+
PersonalInfoRoute,
6256
DeviceActivityRoute,
6357
LinkedAccountsRoute,
6458
SigningInRoute,

0 commit comments

Comments
 (0)