mirror of
https://github.com/immich-app/immich.git
synced 2025-12-08 08:13:55 +09:00
chore(web): migration svelte 5 syntax (#13883)
This commit is contained in:
@@ -4,12 +4,16 @@
|
||||
import { mdiDelete } from '@mdi/js';
|
||||
import { t } from 'svelte-i18n';
|
||||
|
||||
export let menuItem = false;
|
||||
export let onDelete: () => void;
|
||||
interface Props {
|
||||
menuItem?: boolean;
|
||||
onDelete: () => void;
|
||||
}
|
||||
|
||||
let { menuItem = false, onDelete }: Props = $props();
|
||||
</script>
|
||||
|
||||
{#if menuItem}
|
||||
<MenuOption text={$t('delete_link')} icon={mdiDelete} onClick={onDelete} />
|
||||
{:else}
|
||||
<CircleIconButton title={$t('delete_link')} icon={mdiDelete} on:click={onDelete} />
|
||||
<CircleIconButton title={$t('delete_link')} icon={mdiDelete} onclick={onDelete} />
|
||||
{/if}
|
||||
|
||||
Reference in New Issue
Block a user