mirror of
https://github.com/immich-app/immich.git
synced 2026-05-18 03:10:24 +03:00
a02e1f5e7c
* remove import and referenced file * first pass at replacing all CircleIconButtons * fix linting issues * fix combobox formatting issues * fix button context menu coloring * remove circle icon button from search history box * use theme switcher from UI lib * dark mode force the asset viewer icons * fix forced dark mode icons * dark mode memory viewer icons * fix: back button in memory viewer --------- Co-authored-by: Alex <alex.tran1502@gmail.com>
24 lines
519 B
Svelte
24 lines
519 B
Svelte
<script lang="ts">
|
|
import { shortcut } from '$lib/actions/shortcut';
|
|
import { IconButton } from '@immich/ui';
|
|
import { mdiArrowLeft } from '@mdi/js';
|
|
import { t } from 'svelte-i18n';
|
|
|
|
interface Props {
|
|
onClose: () => void;
|
|
}
|
|
|
|
let { onClose }: Props = $props();
|
|
</script>
|
|
|
|
<svelte:document use:shortcut={{ shortcut: { key: 'Escape' }, onShortcut: onClose }} />
|
|
|
|
<IconButton
|
|
color="secondary"
|
|
variant="ghost"
|
|
shape="round"
|
|
icon={mdiArrowLeft}
|
|
aria-label={$t('go_back')}
|
|
onclick={onClose}
|
|
/>
|