Skip to content

Commit

Permalink
fix: collapse render
Browse files Browse the repository at this point in the history
  • Loading branch information
Zephyruso authored and Zephyruso committed Sep 1, 2023
1 parent 5f1319f commit b26e033
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/components/Collpase.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { JSX, ParentComponent } from 'solid-js'
import { JSX, ParentComponent, Show } from 'solid-js'
import { twMerge } from 'tailwind-merge'
// import { Ch} from '@tabler/icons-solidjs'

type Props = {
title: JSX.Element
Expand Down Expand Up @@ -43,7 +42,7 @@ const Collapse: ParentComponent<Props> = (props) => {
'collapse-content grid auto-rows-min grid-cols-2 gap-2 transition-opacity duration-1000 lg:grid-cols-3 xl:grid-cols-4',
)}
>
{content}
<Show when={props.isOpen}>{content}</Show>
</div>
</div>
)
Expand Down

0 comments on commit b26e033

Please sign in to comment.