Skip to content

Commit

Permalink
fix(prop): pass props correctly
Browse files Browse the repository at this point in the history
Signed-off-by: Sudhanshu Dasgupta <[email protected]>
  • Loading branch information
sudhanshutech committed Dec 23, 2024
1 parent 4617e90 commit 9455e31
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/custom/CatalogDetail/OverviewSection.tsx
Original file line number Diff line number Diff line change
@@ -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';
Expand All @@ -26,7 +27,7 @@ interface OverviewSectionProps {
showShareAction: boolean;
handleShare: () => void;
isVisibilityEnabled: boolean;
handleVisibilityChange: () => void;
handleVisibilityChange: (visibility: VIEW_VISIBILITY) => void;
}

const OverviewSection: React.FC<OverviewSectionProps> = ({
Expand Down
3 changes: 2 additions & 1 deletion src/custom/CatalogDetail/RightPanel.tsx
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -29,7 +30,7 @@ interface RightPanelProps {
showShareAction: boolean;
handleShare: () => void;
isVisibilityEnabled: boolean;
handleVisibilityChange: () => void;
handleVisibilityChange: (visibility: VIEW_VISIBILITY) => void;
}

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

0 comments on commit 9455e31

Please sign in to comment.