Skip to content

Commit

Permalink
Integrate see users button
Browse files Browse the repository at this point in the history
  • Loading branch information
prateek3255 committed Feb 16, 2024
1 parent e4c8fb3 commit d6dc504
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 7 deletions.
1 change: 1 addition & 0 deletions build/asset-manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"static/media/plus-square.svg": "/static/media/plus-square.svg",
"static/media/roles-and-permissions.svg": "/static/media/roles-and-permissions.svg",
"static/media/no-results.svg": "/static/media/no-results.svg",
"static/media/info-icon.svg": "/static/media/info-icon.svg",
"static/media/email.svg": "/static/media/email.svg",
"static/media/user-managment.svg": "/static/media/user-managment.svg",
"static/media/lock.svg": "/static/media/lock.svg",
Expand Down
4 changes: 2 additions & 2 deletions build/static/css/main.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/static/css/main.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/static/js/bundle.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/static/js/bundle.js.map

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions build/static/media/info-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ export const LoginMethodsSection = () => {
});
});
},
200
400
),
[]
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
* under the License.
*/

import { getDashboardAppBasePath, setSelectedTenantId } from "../../../../utils";
import Button from "../../button";
import { useTenantDetailContext } from "./TenantDetailContext";

Expand All @@ -27,6 +28,12 @@ const HeaderItem = ({ title, value }: { title: string; value: string }) => {

export const TenantDetailHeader = () => {
const { tenantInfo } = useTenantDetailContext();

const handleSeeUsers = () => {
setSelectedTenantId(tenantInfo.tenantId);
window.open(getDashboardAppBasePath(), "_blank");
};

return (
<div className="tenant-detail__header panel">
<HeaderItem
Expand All @@ -37,7 +44,7 @@ export const TenantDetailHeader = () => {
title="No. of Users"
value={tenantInfo.userCount?.toString()}
/>
<Button>See Users</Button>
<Button onClick={handleSeeUsers}>See Users</Button>
</div>
);
};

0 comments on commit d6dc504

Please sign in to comment.