diff --git a/src/realm-roles/RoleAttributes.tsx b/src/realm-roles/RoleAttributes.tsx index 30b05806eb..5c5b7534cb 100644 --- a/src/realm-roles/RoleAttributes.tsx +++ b/src/realm-roles/RoleAttributes.tsx @@ -14,7 +14,6 @@ import { } from "@patternfly/react-table"; import { MinusCircleIcon, PlusCircleIcon } from "@patternfly/react-icons"; import { useTranslation } from "react-i18next"; -import { useHistory, useRouteMatch } from "react-router-dom"; import { FormAccess } from "../components/form-access/FormAccess"; export type KeyValueType = { key: string; value: string }; @@ -26,8 +25,6 @@ type RoleAttributesProps = { export const RoleAttributes = ({ form, save }: RoleAttributesProps) => { const { t } = useTranslation("roles"); - const history = useHistory(); - const { url } = useRouteMatch(); const { fields, append, remove } = useFieldArray({ control: form.control,