switch to mono-svelte Button component

This commit is contained in:
Xyphyn committed 2023-09-03 17:05:45 -07:00
1 parent c4a1f143cb
commit d02d8556d5
61 files changed
+298 -348

No files matched your search

@@ -6,12 +6,12 @@
import SectionTitle from '$lib/components/ui/SectionTitle.svelte'
import { getClient } from '$lib/lemmy.js'
import { profile } from '$lib/auth.js'
import Button from '$lib/components/input/Button.svelte'
import { Check, Icon, Trash } from 'svelte-hero-icons'
import CommunityLink from '$lib/components/lemmy/community/CommunityLink.svelte'
import { flip } from 'svelte/animate'
import { slide } from 'svelte/transition'
import Placeholder from '$lib/components/ui/Placeholder.svelte'
import { Button } from 'mono-svelte'
// sveltekit doesn't feel like making types work right now
export let data: PageData & {
@@ -70,7 +70,7 @@
>
<UserLink user={block.target} avatar badges />
<Button size="square-md" on:click={() => action(block)}>
<Icon src={Trash} mini size="16" slot="icon" />
<Icon src={Trash} mini size="16" slot="prefix" />
</Button>
</div>
{/each}
@@ -97,7 +97,7 @@
>
<CommunityLink community={block.community} avatar />
<Button size="square-md" on:click={() => action(block)}>
<Icon src={Trash} mini size="16" slot="icon" />
<Icon src={Trash} mini size="16" slot="prefix" />
</Button>
</div>
{/each}