Skip to content

Commit

Permalink
refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
WhyAsh5114 committed Dec 27, 2023
1 parent a3bcffc commit 56e1927
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/components/MyModal.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
export let dialogElement: HTMLDialogElement;
export let title: string;
export let titleColor = "text-accent";
export let onClose: () => void = () => {
export let modalOnClose: () => void = () => {
/* Don't do anything on close by default */
};
Expand All @@ -19,7 +19,7 @@
bind:this={dialogElement}
id={title}
class="modal modal-bottom sm:modal-middle"
on:close={onClose}
on:close={modalOnClose}
>
<form class="modal-box bg-primary text-white" method="dialog">
<button class="btn btn-sm btn-circle absolute right-2 top-2" data-testid="close-modal-button">
Expand Down

0 comments on commit 56e1927

Please sign in to comment.