Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

Should only allow one accordion item at a time

Kiran K9d2bc8838741
diff --git a/apps/web/app/(ee)/app.dub.co/(new-program)/[slug]/program/new/connect/guide-list.tsx b/apps/web/app/(ee)/app.dub.co/(new-program)/[slug]/program/new/connect/guide-list.tsx
index 36a9ac6a74..05c273e88b 100644
--- a/apps/web/app/(ee)/app.dub.co/(new-program)/[slug]/program/new/connect/guide-list.tsx
+++ b/apps/web/app/(ee)/app.dub.co/(new-program)/[slug]/program/new/connect/guide-list.tsx
@@ -99,10 +99,10 @@ export function GuideList() {
return (
<div className="space-y-10">
<Accordion
- type="multiple"
+ type="single"
className="w-full space-y-4"
- value={openSections}
- onValueChange={setOpenSections}
+ value={openSections[0]}
+ onValueChange={(value) => setOpenSections(value ? [value] : [])}
>
{sections.map((section, index) => {
const isCompleted = completedSections.has(section.type);
@@ -209,4 +209,4 @@ export function GuideList() {
</div>
</div>
);
-}
+}
\ No newline at end of file