refactor(web): material icons (#4636)

This commit is contained in:
Jason Rasmussen 2023-10-25 09:48:25 -04:00 committed by GitHub
parent d5e19e45cd
commit 2ad389f64e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
89 changed files with 557 additions and 534 deletions

View file

@ -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>