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