mirror of
https://github.com/immich-app/immich.git
synced 2025-11-24 11:20:40 +09:00
refactor(web): material icons (#4636)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<script lang="ts">
|
||||
import type Icon from 'svelte-material-icons/AbTesting.svelte';
|
||||
import Icon from '$lib/components/elements/icon.svelte';
|
||||
|
||||
export let logo: typeof Icon;
|
||||
export let icon: string;
|
||||
export let backgroundColor = '';
|
||||
export let hoverColor = '#e2e7e9';
|
||||
export let padding = '3';
|
||||
@@ -23,7 +23,7 @@
|
||||
{hideMobile && 'hidden sm:flex'}"
|
||||
on:click
|
||||
>
|
||||
<svelte:component this={logo} {size} />
|
||||
<Icon path={icon} {size} />
|
||||
<slot />
|
||||
</button>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user