feat: update signup page
This commit is contained in:
1 parent
a12f153dc1
commit
7f9ab04c11
19 files changed
+236
-84
No files matched your search
@@ -1,7 +1,7 @@
|
||||
<script lang="ts">
|
||||
import { profile } from '$lib/auth.js'
|
||||
import { uploadImage } from '$lib/util.js'
|
||||
import { ImageInput, toast } from 'mono-svelte'
|
||||
import { uploadImage } from '$lib/lemmy.js'
|
||||
import { Button, Modal } from 'mono-svelte'
|
||||
import { createEventDispatcher } from 'svelte'
|
||||
|
||||
@@ -17,7 +17,11 @@
|
||||
loading = true
|
||||
|
||||
try {
|
||||
const uploaded = await uploadImage(image[0])
|
||||
const uploaded = await uploadImage(
|
||||
image[0],
|
||||
$profile.instance,
|
||||
$profile.jwt
|
||||
)
|
||||
|
||||
if (!uploaded) throw new Error('Image upload returned undefined')
|
||||
|
||||
|
||||
Reference in new issue
Block a user