feat: switch to a string instead of enum

This commit is contained in:
Xyphyn committed 2023-08-02 14:22:27 -07:00
1 parent aeb727ae3b
commit 87612d6507
23 files changed
+92 -128

No files matched your search

+2 -2
View File
@@ -1,8 +1,8 @@
<script lang="ts">
import { getClient } from '$lib/lemmy.js'
import type { CommunityView } from 'lemmy-js-client'
import { ToastType, addToast } from '$lib/components/ui/toasts/toasts.js'
import { profile } from '$lib/auth.js'
import { toast } from '$lib/components/ui/toasts/toasts.js'
export let community: CommunityView
@@ -23,7 +23,7 @@
subscribing = false
return res
} catch (error) {
addToast('Error', 'Failed to subscribe to community', ToastType.error)
toast({ content: 'Failed to subscribe to community', type: 'error' })
}
subscribing = false