mirror of
https://github.com/immich-app/static-pages.git
synced 2026-09-30 21:27:54 +08:00
fix: on close button (#829)
This commit is contained in:
@@ -96,7 +96,7 @@
|
||||
variant="ghost"
|
||||
size="tiny"
|
||||
aria-label={t('close', translations)}
|
||||
onclick={onClose}
|
||||
onclick={() => onClose()}
|
||||
/>
|
||||
{/if}
|
||||
{#if close}
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
<Modal {title} {onClose} {size} {icon} {closeOnBackdropClick} {closeOnEsc}>
|
||||
<ModalBody {children} />
|
||||
<ModalFooter>
|
||||
<Button shape="round" color={closeColor} fullWidth onclick={onClose}>
|
||||
<Button shape="round" color={closeColor} fullWidth onclick={() => onClose()}>
|
||||
{closeText}
|
||||
</Button>
|
||||
</ModalFooter>
|
||||
|
||||
@@ -68,7 +68,7 @@
|
||||
</div>
|
||||
{#if onClose}
|
||||
<div class="flex items-center">
|
||||
<CloseButton color="secondary" variant="ghost" onclick={onClose} />
|
||||
<CloseButton color="secondary" variant="ghost" onclick={() => onClose()} />
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user