make the part to update smaller (#214)
This makes switching between sections a bit nicer
This commit is contained in:
parent
19e1b70a12
commit
b06cea6fd9
1 changed files with 30 additions and 33 deletions
|
@ -73,43 +73,40 @@ export const PageNav: React.FunctionComponent = () => {
|
|||
);
|
||||
|
||||
return (
|
||||
<DataLoader loader={realmLoader}>
|
||||
{(realmList) => (
|
||||
<PageSidebar
|
||||
nav={
|
||||
<Nav onSelect={onSelect}>
|
||||
<NavList>
|
||||
<PageSidebar
|
||||
nav={
|
||||
<Nav onSelect={onSelect}>
|
||||
<NavList>
|
||||
<DataLoader loader={realmLoader}>
|
||||
{(realmList) => (
|
||||
<NavItem className="keycloak__page_nav__nav_item__realm-selector">
|
||||
<RealmSelector realmList={realmList.data || []} />
|
||||
</NavItem>
|
||||
</NavList>
|
||||
{showManage && (
|
||||
<NavGroup title={t("manage")}>
|
||||
<LeftNav title="clients" path="/clients" />
|
||||
<LeftNav title="clientScopes" path="/client-scopes" />
|
||||
<LeftNav title="realmRoles" path="/roles" />
|
||||
<LeftNav title="users" path="/users" />
|
||||
<LeftNav title="groups" path="/groups" />
|
||||
<LeftNav title="sessions" path="/sessions" />
|
||||
<LeftNav title="events" path="/events" />
|
||||
</NavGroup>
|
||||
)}
|
||||
</DataLoader>
|
||||
</NavList>
|
||||
{showManage && (
|
||||
<NavGroup title={t("manage")}>
|
||||
<LeftNav title="clients" path="/clients" />
|
||||
<LeftNav title="clientScopes" path="/client-scopes" />
|
||||
<LeftNav title="realmRoles" path="/roles" />
|
||||
<LeftNav title="users" path="/users" />
|
||||
<LeftNav title="groups" path="/groups" />
|
||||
<LeftNav title="sessions" path="/sessions" />
|
||||
<LeftNav title="events" path="/events" />
|
||||
</NavGroup>
|
||||
)}
|
||||
|
||||
{showConfigure && (
|
||||
<NavGroup title={t("configure")}>
|
||||
<LeftNav title="realmSettings" path="/realm-settings" />
|
||||
<LeftNav title="authentication" path="/authentication" />
|
||||
<LeftNav
|
||||
title="identityProviders"
|
||||
path="/identity-providers"
|
||||
/>
|
||||
<LeftNav title="userFederation" path="/user-federation" />
|
||||
</NavGroup>
|
||||
)}
|
||||
</Nav>
|
||||
}
|
||||
/>
|
||||
)}
|
||||
</DataLoader>
|
||||
{showConfigure && (
|
||||
<NavGroup title={t("configure")}>
|
||||
<LeftNav title="realmSettings" path="/realm-settings" />
|
||||
<LeftNav title="authentication" path="/authentication" />
|
||||
<LeftNav title="identityProviders" path="/identity-providers" />
|
||||
<LeftNav title="userFederation" path="/user-federation" />
|
||||
</NavGroup>
|
||||
)}
|
||||
</Nav>
|
||||
}
|
||||
/>
|
||||
);
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue