From 9455e313b539aca6f915504de90341d9df716c2e Mon Sep 17 00:00:00 2001 From: Sudhanshu Dasgupta Date: Mon, 23 Dec 2024 13:16:21 +0530 Subject: [PATCH] fix(prop): pass props correctly Signed-off-by: Sudhanshu Dasgupta --- src/custom/CatalogDetail/OverviewSection.tsx | 3 ++- src/custom/CatalogDetail/RightPanel.tsx | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/custom/CatalogDetail/OverviewSection.tsx b/src/custom/CatalogDetail/OverviewSection.tsx index ef0ffcf8..57b2cf66 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 027f7334..570119ab 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 = ({