Skip to content

Commit

Permalink
fix(pci.block-storage): remove unwanted discovery banner (#13236)
Browse files Browse the repository at this point in the history
ref: TAPC-1436

Signed-off-by: Simon Chaumet <[email protected]>
  • Loading branch information
SimonChaumet authored and anooparveti committed Oct 7, 2024
1 parent 5ff2c43 commit 9a2d181
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,7 @@ import {
ODS_ICON_SIZE,
ODS_SPINNER_SIZE,
} from '@ovhcloud/ods-components';
import {
PciAnnouncementBanner,
PciDiscoveryBanner,
useProject,
} from '@ovh-ux/manager-pci-common';
import { useAnnouncementBanner } from '@/hooks/useAnnouncementBanner';
import { PciAnnouncementBanner, useProject } from '@ovh-ux/manager-pci-common';
import { useDatagridColumn } from '@/hooks/useDatagridColumn';

import HidePreloader from '@/core/HidePreloader';
Expand All @@ -55,7 +50,6 @@ export default function ListingPage() {
const navigate = useNavigate();
const { projectId } = useParams();
const { hasMaintenance, maintenanceURL } = useProductMaintenance(projectId);
const { isBannerVisible } = useAnnouncementBanner();
const columns = useDatagridColumn(projectId, projectUrl);
const [searchField, setSearchField] = useState('');
const { data: project } = useProject();
Expand Down Expand Up @@ -133,8 +127,6 @@ export default function ListingPage() {

<PciAnnouncementBanner data-testid="ListPage_announcementBanner" />

<PciDiscoveryBanner project={project} />

<Notifications />
<div className="sm:flex items-center justify-between mt-4">
<OsdsButton
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { OsdsBreadcrumb, OsdsText } from '@ovhcloud/ods-components/react';
import { useContext, useEffect, useState } from 'react';
import { useTranslation } from 'react-i18next';
import { Outlet, useNavigate, useParams } from 'react-router-dom';
import { PciDiscoveryBanner, useProject } from '@ovh-ux/manager-pci-common';
import { useProject } from '@ovh-ux/manager-pci-common';
import HidePreloader from '@/core/HidePreloader';
import { GUIDES } from './onboarding.constants';
import { useAllVolumes } from '@/api/hooks/useVolume';
Expand Down Expand Up @@ -110,10 +110,6 @@ export default function OnBoardingPage() {
<HidePreloader />
{project && <OsdsBreadcrumb items={breadcrumbItems} />}

<div className="mb-8">
<PciDiscoveryBanner project={project} />
</div>

<OnboardingLayout
title={t('pci_projects_project_storages_blocks_title')}
description={
Expand Down

0 comments on commit 9a2d181

Please sign in to comment.