Add pomade signing

This commit is contained in:
Jon Staab
2025-12-17 18:43:13 -08:00
parent 48f2bb1c75
commit cd1b328b1b
20 changed files with 582 additions and 487 deletions
+9 -1
View File
@@ -8,8 +8,15 @@
import ModalFooter from "@lib/components/ModalFooter.svelte"
import ProfileEditForm from "@app/components/ProfileEditForm.svelte"
import SignUpKey from "@app/components/SignUpKey.svelte"
import SignUpEmail from "@app/components/SignUpEmail.svelte"
import {pushModal} from "@app/util/modal"
type Props = {
flow: "nostr" | "email"
}
const {flow}: Props = $props()
const initialValues = {
profile: makeProfile(),
shouldBroadcast: false,
@@ -17,7 +24,8 @@
const back = () => history.back()
const onsubmit = (values: {profile: Profile}) => pushModal(SignUpKey, values)
const onsubmit = (values: {profile: Profile}) =>
pushModal(flow === "nostr" ? SignUpKey : SignUpEmail, values)
</script>
<div class="flex flex-col gap-4">