Skip to content

Commit 8e66e3d

Browse files
authored
Merge pull request #487 from Rithish-2914/fix/accordion-toggle
Fix: Sidebar accordion not collapsing
2 parents f7e88ed + e915c2b commit 8e66e3d

File tree

3 files changed

+10
-20
lines changed

3 files changed

+10
-20
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ yarn-error.log*
3434
# local env files
3535
# do not commit any .env files to git, except for the .env.example file. https://create.t3.gg/en/usage/env-variables#using-environment-variables
3636
.env
37-
.env.lcal
37+
.env.local
3838
.env*.local
3939
.env.prod
4040
# vercel

package-lock.json

Lines changed: 8 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/SidebarSection.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const SidebarSection: React.FC<SidebarSectionProps> = ({
2323
updater,
2424
}) => (
2525
<div className="flex w-full flex-col items-baseline justify-between border-b-2 border-[#36266d] px-[10px]">
26-
<Accordion className="w-full" type="single" value={label}>
26+
<Accordion className="w-full" type="single" collapsible>
2727
<AccordionItem className="border-none no-underline" value={label}>
2828
<AccordionTrigger className="w-full no-underline">
2929
<div className="font-play text-sm no-underline">{label}</div>

0 commit comments

Comments
 (0)