Wizard: Remove "Red Hat" repository icon

This removes the icon from "Red Hat" repositories.
This commit is contained in:
regexowl 2025-04-29 16:45:07 +02:00 committed by Klara Simickova
parent 635636a202
commit 5f82811299
2 changed files with 3 additions and 43 deletions

View file

@ -21,8 +21,6 @@ import { Table, Tbody, Td, Th, Thead, Tr } from '@patternfly/react-table';
import useChrome from '@redhat-cloud-services/frontend-components/useChrome';
import { useDispatch } from 'react-redux';
import { RedHatRepository } from './Packages';
import { AMPLITUDE_MODULE_NAME, ContentOrigin } from '../../../../constants';
import {
useListRepositoriesQuery,
@ -252,9 +250,7 @@ const PackageRecommendations = () => {
.map((p) => p.summary)}
</Td>
)}
<Td>
<RedHatRepository />
</Td>
<Td>Red Hat</Td>
<Td>
<Button
variant="link"

View file

@ -61,7 +61,6 @@ import {
ContentOrigin,
EPEL_8_REPO_DEFINITION,
EPEL_9_REPO_DEFINITION,
RH_ICON_SIZE,
} from '../../../../constants';
import { useGetArchitecturesQuery } from '../../../../store/backendApi';
import {
@ -115,21 +114,6 @@ export enum Repos {
OTHER = 'other-repos',
}
export const RedHatRepository = () => {
return (
<>
{' '}
<img
src={'/apps/frontend-assets/red-hat-logos/logo_hat-only.svg'}
alt="Red Hat logo"
height={RH_ICON_SIZE}
width={RH_ICON_SIZE}
/>{' '}
Red Hat repository
</>
);
};
const Packages = () => {
const dispatch = useDispatch();
@ -1081,17 +1065,7 @@ const Packages = () => {
<Td>N/A</Td>
{grp.repository === 'distro' ? (
<>
<Td>
<img
src={
'/apps/frontend-assets/red-hat-logos/logo_hat-only.svg'
}
alt="Red Hat logo"
height={RH_ICON_SIZE}
width={RH_ICON_SIZE}
/>{' '}
Red Hat repository
</Td>
<Td>Red Hat</Td>
</>
) : grp.repository === 'custom' ? (
<>
@ -1181,17 +1155,7 @@ const Packages = () => {
</Td>
{pkg.repository === 'distro' ? (
<>
<Td>
<img
src={
'/apps/frontend-assets/red-hat-logos/logo_hat-only.svg'
}
alt="Red Hat logo"
height={RH_ICON_SIZE}
width={RH_ICON_SIZE}
/>{' '}
Red Hat repository
</Td>
<Td>Red Hat</Td>
</>
) : pkg.repository === 'custom' ? (
<>