Skip to content

Commit

Permalink
HRMNY-15867 Removed Account management from header
Browse files Browse the repository at this point in the history
  • Loading branch information
saisantosh-revvity committed Nov 22, 2024
1 parent 01cf879 commit 12411f1
Showing 1 changed file with 2 additions and 25 deletions.
27 changes: 2 additions & 25 deletions js/apps/admin-ui/src/PageHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import {
Brand,
Dropdown,
DropdownItem,
DropdownSeparator,
DropdownToggle,
KebabToggle,
PageHeader,
Expand All @@ -17,20 +16,6 @@ import { useAdminClient } from "./context/auth/AdminClient";
import { useWhoAmI } from "./context/whoami/WhoAmI";
import environment from "./environment";

const ManageAccountDropdownItem = () => {
const { keycloak } = useAdminClient();
const { t } = useTranslation();
return (
<DropdownItem
key="manage account"
id="manage-account"
onClick={() => keycloak.accountManagement()}
>
{t("manageAccount")}
</DropdownItem>
);
};

const SignOutDropdownItem = () => {
const { keycloak } = useAdminClient();
const { t } = useTranslation();
Expand All @@ -45,17 +30,9 @@ const SignOutDropdownItem = () => {
);
};

const kebabDropdownItems = [
<ManageAccountDropdownItem key="kebab Manage Account" />,
<DropdownSeparator key="kebab sign out separator" />,
<SignOutDropdownItem key="kebab Sign out" />,
];
const kebabDropdownItems = [<SignOutDropdownItem key="kebab Sign out" />];

const userDropdownItems = [
<ManageAccountDropdownItem key="Manage Account" />,
<DropdownSeparator key="sign out separator" />,
<SignOutDropdownItem key="Sign out" />,
];
const userDropdownItems = [<SignOutDropdownItem key="Sign out" />];

const KebabDropdown = () => {
const [isDropdownOpen, setDropdownOpen] = useState(false);
Expand Down

0 comments on commit 12411f1

Please sign in to comment.