Skip to content

Commit

Permalink
fix: accordion opening experience
Browse files Browse the repository at this point in the history
  • Loading branch information
drewpledger authored and apledger committed Nov 11, 2024
1 parent e6659db commit 66ea42a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/makeswift/components/accordions/accordions.makeswift.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ interface MSAccordionsProps {
runtime.registerComponent(
function MSAccordions({ className, accordions, type }: MSAccordionsProps) {
return (
<Accordions className={className} type={type}>
<Accordions className={className} collapsible type={type}>
{accordions.length < 1 && (
<div className="p-4 text-center text-lg text-gray-400">Add accordions</div>
)}
{accordions.map(({ title, children }, index) => (
<Accordion key={index} title={title} value={title}>
<Accordion key={index} title={title} value={index.toString()}>
{children}
</Accordion>
))}
Expand Down

0 comments on commit 66ea42a

Please sign in to comment.