Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

removing info box #138

Merged
merged 1 commit into from
Oct 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion locales/en/plugin__kuadrant-console-plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@
"Hide for session": "Hide for session",
"highlights": "highlights",
"HTTPRoute API Target Reference": "HTTPRoute API Target Reference",
"Info about this page": "Info about this page",
"Issuer": "Issuer",
"Issuer API Target Reference": "Issuer API Target Reference",
"Issuer: Reference to the issuer for the created certificate. To create an additional Issuer go to": "Issuer: Reference to the issuer for the created certificate. To create an additional Issuer go to",
Expand Down
16 changes: 0 additions & 16 deletions src/components/KuadrantPoliciesPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@

import { Title } from '@patternfly/react-core';
import {
Alert,
AlertGroup,
Dropdown,
DropdownItem,
DropdownList,
Expand Down Expand Up @@ -49,7 +47,7 @@
columns?: TableColumn<K8sResourceCommon>[];
showAlertGroup?: boolean;
paginationLimit?: number;
}> = ({ activeNamespace, columns, showAlertGroup = false, paginationLimit }) => {

Check warning on line 50 in src/components/KuadrantPoliciesPage.tsx

View workflow job for this annotation

GitHub Actions / lint

'showAlertGroup' is assigned a value but never used
const { t } = useTranslation('plugin__kuadrant-console-plugin');
const history = useHistory();
const [isOpen, setIsOpen] = useState(false);
Expand All @@ -69,14 +67,6 @@
return (
<>
<ListPageBody>
{showAlertGroup && (
<AlertGroup className="kuadrant-alert-group">
<Alert title={t('Info about this page')} variant="info" isInline>
...
</Alert>
</AlertGroup>
)}

<div className="co-m-nav-title--row kuadrant-resource-create-container">
<ResourceList
resources={resources.map((r) => r.gvk)}
Expand Down Expand Up @@ -133,12 +123,6 @@
return (
<>
<ListPageBody>
<AlertGroup className="kuadrant-alert-group">
<Alert title={t('Info about this page')} variant="info" isInline>
{/* Add any informational content here */}
...
</Alert>
</AlertGroup>
<div className="co-m-nav-title--row kuadrant-resource-create-container">
<ResourceList resources={[resource.gvk]} namespace={activeNamespace} />
<div className="kuadrant-resource-create-button pf-u-mt-md">
Expand Down
Loading