From 724c7238c651405f93894c2667cb6ac493bf0eb5 Mon Sep 17 00:00:00 2001 From: gitdallas Date: Tue, 19 Sep 2023 13:47:08 -0500 Subject: [PATCH] replace deprecated dropdown in manage-imports Signed-off-by: gitdallas --- client/src/app/layout/HeaderApp/SSOMenu.tsx | 1 - .../applications/manage-imports/manage-imports.tsx | 12 +++++------- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/client/src/app/layout/HeaderApp/SSOMenu.tsx b/client/src/app/layout/HeaderApp/SSOMenu.tsx index 561b51ba3f..27f352c8d8 100644 --- a/client/src/app/layout/HeaderApp/SSOMenu.tsx +++ b/client/src/app/layout/HeaderApp/SSOMenu.tsx @@ -9,7 +9,6 @@ import { DropdownList, ToolbarItem, } from "@patternfly/react-core"; -// import { Dropdown, DropdownToggle } from "@patternfly/react-core/deprecated"; import { isAuthRequired, LocalStorageKey } from "@app/Constants"; import { useHistory } from "react-router-dom"; diff --git a/client/src/app/pages/applications/manage-imports/manage-imports.tsx b/client/src/app/pages/applications/manage-imports/manage-imports.tsx index 0f88325529..69a89f3dcd 100644 --- a/client/src/app/pages/applications/manage-imports/manage-imports.tsx +++ b/client/src/app/pages/applications/manage-imports/manage-imports.tsx @@ -4,13 +4,13 @@ import { useTranslation } from "react-i18next"; import { Button, ButtonVariant, + DropdownItem, Modal, PageSection, Popover, ToolbarGroup, ToolbarItem, } from "@patternfly/react-core"; -import { DropdownItem } from "@patternfly/react-core/deprecated"; import { cellWidth, IAction, @@ -350,12 +350,10 @@ export const ManageImports: React.FC = () => { dropdownItems={[ - {t("actions.downloadCsvTemplate")} - - } - />, + to="/template_application_import.csv" + > + {t("actions.downloadCsvTemplate")} + , ]} />