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

+3 -9
View File
@@ -1,13 +1,6 @@
<script lang="ts">
import InboxItem from './InboxItem.svelte'
import Button from '$lib/components/input/Button.svelte'
import {
ArchiveBox,
Check,
EnvelopeOpen,
Icon,
Inbox,
} from 'svelte-hero-icons'
import { Check, Icon, Inbox } from 'svelte-hero-icons'
import { getClient } from '$lib/lemmy.js'
import { goto } from '$app/navigation'
import { page } from '$app/stores'
@@ -18,6 +11,7 @@
import Placeholder from '$lib/components/ui/Placeholder.svelte'
import { fly } from 'svelte/transition'
import { searchParam } from '$lib/util.js'
import { Button } from 'mono-svelte'
export let data
@@ -59,7 +53,7 @@
disabled={markingAsRead}
size="md"
>
<Icon src={Check} width={16} mini slot="icon" />
<Icon src={Check} width={16} mini slot="prefix" />
Mark all as read
</Button>
</div>
+2 -2
View File
@@ -1,6 +1,5 @@
<script lang="ts">
import { goto } from '$app/navigation'
import Button from '$lib/components/input/Button.svelte'
import TextArea from '$lib/components/input/TextArea.svelte'
import Comment from '$lib/components/lemmy/comment/Comment.svelte'
import Markdown from '$lib/components/markdown/Markdown.svelte'
@@ -18,6 +17,7 @@
import { toast } from '$lib/components/ui/toasts/toasts.js'
import PostMeta from '$lib/components/lemmy/post/PostMeta.svelte'
import SectionTitle from '$lib/components/ui/SectionTitle.svelte'
import { Button } from 'mono-svelte'
export let item: CommentReplyView | PersonMentionView | PrivateMessageView
export let read: boolean
@@ -132,7 +132,7 @@
disabled={loading}
on:click={() => markAsRead(!read)}
>
<Icon slot="icon" src={Check} mini size="16" />
<Icon slot="prefix" src={Check} mini size="16" />
</Button>
<Button href="/comment/{item.comment.id}" size="md" class="h-8">