refactor: ui icon buttons (#15531)

This commit is contained in:
Jason Rasmussen
2025-01-22 16:44:59 -05:00
committed by GitHub
parent 1f19a65d1a
commit 78464a4ba3
13 changed files with 163 additions and 146 deletions
+8 -5
View File
@@ -30,7 +30,7 @@
updatePerson,
type PersonResponseDto,
} from '@immich/sdk';
import { Button, Text } from '@immich/ui';
import { Button } from '@immich/ui';
import { mdiAccountOff, mdiEyeOutline } from '@mdi/js';
import { onMount } from 'svelte';
import { t } from 'svelte-i18n';
@@ -392,10 +392,13 @@
/>
</div>
</div>
<Button onclick={() => (selectHidden = !selectHidden)} size="small" variant="ghost" color="secondary">
<Icon path={mdiEyeOutline} />
<Text>{$t('show_and_hide_people')}</Text>
</Button>
<Button
leadingIcon={mdiEyeOutline}
onclick={() => (selectHidden = !selectHidden)}
size="small"
variant="ghost"
color="secondary">{$t('show_and_hide_people')}</Button
>
</div>
{/if}
{/snippet}