Skip to content

Commit f1a59fb

Browse files
authored
fix(quickstart tile): opening quickstarts on click event (#288)
1 parent 0babc9c commit f1a59fb

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

packages/module/src/catalog/QuickStartTile.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,14 +72,14 @@ const QuickStartTile: React.FC<QuickStartTileProps> = ({
7272
if (link) {
7373
window.open(link.href);
7474
} else {
75-
setActiveQuickStart(name, tasks?.length);
75+
setActiveQuickStart(id, tasks?.length);
7676
}
7777
onClick();
7878
}
7979
};
8080

8181
return (
82-
<div ref={ref}>
82+
<div ref={ref} onClick={handleClick}>
8383
<CatalogTile
8484
id={id + '-catalog-tile'}
8585
style={{
@@ -99,7 +99,6 @@ const QuickStartTile: React.FC<QuickStartTileProps> = ({
9999
action={action}
100100
/>
101101
}
102-
onClick={handleClick}
103102
onKeyDown={(event) => {
104103
if (event.key === 'Enter' || event.key === ' ') {
105104
setActiveQuickStart(id, tasks?.length);

0 commit comments

Comments
 (0)