mirror of
https://github.com/MetaCubeX/metacubexd.git
synced 2024-12-26 19:24:12 +08:00
chore: refactor listen to input change
This commit is contained in:
parent
d2b5c17d8c
commit
adfa4324ef
@ -30,12 +30,12 @@ const Collapse: ParentComponent<Props> = (props) => {
|
||||
'collapse collapse-arrow overflow-visible border-secondary bg-base-200',
|
||||
)}
|
||||
>
|
||||
<div
|
||||
class="collapse-title text-xl font-medium"
|
||||
onClick={() => onCollapse(!props.isOpen)}
|
||||
>
|
||||
{title}
|
||||
</div>
|
||||
<input
|
||||
type="checkbox"
|
||||
onChange={(e) => onCollapse(e.target.checked)}
|
||||
checked={props.isOpen}
|
||||
/>
|
||||
<div class="collapse-title text-xl font-medium">{title}</div>
|
||||
<div
|
||||
class={twMerge(
|
||||
getCollapseContentClassName(),
|
||||
|
Loading…
x
Reference in New Issue
Block a user