Skip to content

Commit

Permalink
fix : meet code style and type check
Browse files Browse the repository at this point in the history
  • Loading branch information
NelsonKCT committed Oct 17, 2024
1 parent 0eb7d05 commit e26f4a7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/routes/events/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,11 @@ function EventIndex() {
))
}
</div>
<button className="btn btn-circle fixed right-4 bottom-4" onClick={()=>document.getElementById('my_modal_4').showModal()}>
<button className="btn btn-circle fixed right-4 bottom-4" onClick={()=>{
if(document){
(document.getElementById('my_modal_4') as HTMLFormElement).showModal();
}
}}>
<PlusIcon />
<dialog id="my_modal_4" className="modal">
<div className="modal-box w-11/12 max-w-5xl">
Expand Down

0 comments on commit e26f4a7

Please sign in to comment.