Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 10 additions & 12 deletions src/components/platformFilter/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,17 +116,15 @@ function PlatformWithGuides({
>
<Collapsible.Trigger asChild className={classNames(styles.CollapsibleTrigger)}>
<div>
<Link href={platform.url} key={platform.key}>
<div className={styles.PlatformTitle}>
<PlatformIcon
size={20}
platform={platform.icon ?? platform.key}
format="lg"
className={styles.PlatformIcon}
/>
{platform.title}
</div>
</Link>
<div className={styles.PlatformTitle} key={platform.key}>
<PlatformIcon
size={20}
platform={platform.icon ?? platform.key}
format="lg"
className={styles.PlatformIcon}
/>
{platform.title}
</div>
<button className={styles.ChevronButton}>
<TriangleRightIcon
className={styles.CollapsibleChevron}
Expand All @@ -142,7 +140,7 @@ function PlatformWithGuides({
// scrollable if there are more than 8 (arbitrary limit) guides
data-scrollable={platform.guides.length >= 8 || platform.integrations.length >= 8}
>
{platform.guides.map((guide, i) => (
{[platform, ...platform.guides].map((guide, i) => (
<Link href={guide.url} key={guide.key}>
<div
className={styles.Guide}
Expand Down
1 change: 1 addition & 0 deletions src/components/platformFilter/style.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
}

.CollapsibleTrigger {
cursor: pointer;
padding-right: 0.5rem;
padding-left: 0.5rem;
flex: 1;
Expand Down
Loading