fix: disable button on not isComplete
This commit is contained in:
@@ -75,7 +75,11 @@ export default function SectionAccordion({
|
||||
</div>
|
||||
</div>
|
||||
<header className={styles.header}>
|
||||
<button onClick={onModify} className={styles.modifyButton}>
|
||||
<button
|
||||
onClick={onModify}
|
||||
disabled={!isComplete}
|
||||
className={styles.modifyButton}
|
||||
>
|
||||
<Footnote
|
||||
className={styles.title}
|
||||
asChild
|
||||
@@ -94,7 +98,9 @@ export default function SectionAccordion({
|
||||
)}
|
||||
</button>
|
||||
</header>
|
||||
<div className={styles.content}>{children}</div>
|
||||
<div className={styles.content}>
|
||||
<div className={styles.contentWrapper}>{children}</div>
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user