Skip to content

Commit ab73d54

Browse files
committed
Update ComponentsSelection.tsx
1 parent 01339c4 commit ab73d54

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/components/ComponentsSelection/ComponentsSelection.tsx

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ export interface ComponentSelectionItem {
2626
versions: string[];
2727
isSelected: boolean;
2828
selectedVersion: string;
29+
documentationUrl: string;
2930
}
3031

3132
export interface ComponentsSelectionProps {
@@ -113,9 +114,12 @@ export const ComponentsSelection: React.FC<ComponentsSelectionProps> = ({
113114
justifyContent="SpaceBetween"
114115
alignItems="Baseline"
115116
>
116-
<Button design="Transparent">
117-
{t('common.documentation')}
118-
</Button>
117+
{/*This button will be implemented later*/}
118+
{component.documentationUrl && (
119+
<Button design="Transparent">
120+
{t('common.documentation')}
121+
</Button>
122+
)}
119123
<Select
120124
value={component.selectedVersion}
121125
onChange={handleVersionChange}

0 commit comments

Comments
 (0)