Skip to content

Commit 9455e31

Browse files
committed
fix(prop): pass props correctly
Signed-off-by: Sudhanshu Dasgupta <[email protected]>
1 parent 4617e90 commit 9455e31

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/custom/CatalogDetail/OverviewSection.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import React from 'react';
22
import { Grid } from '../../base';
33
import { Pattern } from '../CustomCatalog/CustomCard';
4+
import { VIEW_VISIBILITY } from '../VisibilityChipMenu/VisibilityChipMenu';
45
import ContentClassInfo from './ContentClassInfo';
56
import MetricsDisplay from './MetricsDisplay';
67
import PatternInfo from './PatternInfo';
@@ -26,7 +27,7 @@ interface OverviewSectionProps {
2627
showShareAction: boolean;
2728
handleShare: () => void;
2829
isVisibilityEnabled: boolean;
29-
handleVisibilityChange: () => void;
30+
handleVisibilityChange: (visibility: VIEW_VISIBILITY) => void;
3031
}
3132

3233
const OverviewSection: React.FC<OverviewSectionProps> = ({

src/custom/CatalogDetail/RightPanel.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import React from 'react';
22
import { Pattern } from '../CustomCatalog/CustomCard';
3+
import { VIEW_VISIBILITY } from '../VisibilityChipMenu/VisibilityChipMenu';
34
import CaveatsSection from './CaveatsSection';
45
import OverviewSection from './OverviewSection';
56
import RelatedDesigns, { PatternsPerUser } from './RelatedDesigns';
@@ -29,7 +30,7 @@ interface RightPanelProps {
2930
showShareAction: boolean;
3031
handleShare: () => void;
3132
isVisibilityEnabled: boolean;
32-
handleVisibilityChange: () => void;
33+
handleVisibilityChange: (visibility: VIEW_VISIBILITY) => void;
3334
}
3435

3536
const RightPanel: React.FC<RightPanelProps> = ({

0 commit comments

Comments
 (0)