diff --git a/src/custom/CatalogDetail/OverviewSection.tsx b/src/custom/CatalogDetail/OverviewSection.tsx index ef0ffcf86..57b2cf661 100644 --- a/src/custom/CatalogDetail/OverviewSection.tsx +++ b/src/custom/CatalogDetail/OverviewSection.tsx @@ -1,6 +1,7 @@ import React from 'react'; import { Grid } from '../../base'; import { Pattern } from '../CustomCatalog/CustomCard'; +import { VIEW_VISIBILITY } from '../VisibilityChipMenu/VisibilityChipMenu'; import ContentClassInfo from './ContentClassInfo'; import MetricsDisplay from './MetricsDisplay'; import PatternInfo from './PatternInfo'; @@ -26,7 +27,7 @@ interface OverviewSectionProps { showShareAction: boolean; handleShare: () => void; isVisibilityEnabled: boolean; - handleVisibilityChange: () => void; + handleVisibilityChange: (visibility: VIEW_VISIBILITY) => void; } const OverviewSection: React.FC = ({ diff --git a/src/custom/CatalogDetail/RightPanel.tsx b/src/custom/CatalogDetail/RightPanel.tsx index 027f7334f..570119ab7 100644 --- a/src/custom/CatalogDetail/RightPanel.tsx +++ b/src/custom/CatalogDetail/RightPanel.tsx @@ -1,5 +1,6 @@ import React from 'react'; import { Pattern } from '../CustomCatalog/CustomCard'; +import { VIEW_VISIBILITY } from '../VisibilityChipMenu/VisibilityChipMenu'; import CaveatsSection from './CaveatsSection'; import OverviewSection from './OverviewSection'; import RelatedDesigns, { PatternsPerUser } from './RelatedDesigns'; @@ -29,7 +30,7 @@ interface RightPanelProps { showShareAction: boolean; handleShare: () => void; isVisibilityEnabled: boolean; - handleVisibilityChange: () => void; + handleVisibilityChange: (visibility: VIEW_VISIBILITY) => void; } const RightPanel: React.FC = ({