Rename LogInPassword

This commit is contained in:
Jon Staab
2024-11-27 09:12:27 -08:00
parent a58fc68235
commit c2aa829334
5 changed files with 9 additions and 9 deletions

View File

@@ -10,7 +10,7 @@
import SignUp from "@app/components/SignUp.svelte" import SignUp from "@app/components/SignUp.svelte"
import InfoNostr from "@app/components/InfoNostr.svelte" import InfoNostr from "@app/components/InfoNostr.svelte"
import LogInBunker from "@app/components/LogInBunker.svelte" import LogInBunker from "@app/components/LogInBunker.svelte"
import LogInBurrow from "@app/components/LogInBurrow.svelte" import LogInPassword from "@app/components/LogInPassword.svelte"
import {pushModal, clearModals} from "@app/modal" import {pushModal, clearModals} from "@app/modal"
import {PLATFORM_NAME, BURROW_URL} from "@app/state" import {PLATFORM_NAME, BURROW_URL} from "@app/state"
import {pushToast} from "@app/toast" import {pushToast} from "@app/toast"
@@ -68,7 +68,7 @@
} }
}) })
const loginWithBurrow = () => pushModal(LogInBurrow) const loginWithPassword = () => pushModal(LogInPassword)
const loginWithBunker = () => pushModal(LogInBunker) const loginWithBunker = () => pushModal(LogInBunker)
@@ -95,7 +95,7 @@
you to own your social identity. you to own your social identity.
</p> </p>
{#if BURROW_URL} {#if BURROW_URL}
<Button disabled={loading} on:click={loginWithBurrow} class="btn btn-primary"> <Button disabled={loading} on:click={loginWithPassword} class="btn btn-primary">
{#if loading} {#if loading}
<span class="loading loading-spinner mr-3" /> <span class="loading loading-spinner mr-3" />
{:else} {:else}

View File

@@ -38,7 +38,7 @@
} }
} }
const signupBurrow = withLoading(async () => { const signupPassword = withLoading(async () => {
const res = await postJson(BURROW_URL + "/user", {email, password}) const res = await postJson(BURROW_URL + "/user", {email, password})
if (res.error) { if (res.error) {
@@ -93,7 +93,7 @@
const signup = () => { const signup = () => {
if (BURROW_URL) { if (BURROW_URL) {
signupBurrow() signupPassword()
} else { } else {
signupNsecApp() signupNsecApp()
} }

View File

@@ -3,7 +3,7 @@
import {postJson, sleep} from "@welshman/lib" import {postJson, sleep} from "@welshman/lib"
import Button from "@lib/components/Button.svelte" import Button from "@lib/components/Button.svelte"
import Spinner from "@lib/components/Spinner.svelte" import Spinner from "@lib/components/Spinner.svelte"
import LogInBurrow from "@app/components/LogInBurrow.svelte" import LogInPassword from "@app/components/LogInPassword.svelte"
import {pushModal} from "@app/modal" import {pushModal} from "@app/modal"
import {BURROW_URL} from "@app/state" import {BURROW_URL} from "@app/state"
@@ -11,7 +11,7 @@
export let token export let token
const login = () => { const login = () => {
pushModal(LogInBurrow, {email}, {path: "/"}) pushModal(LogInPassword, {email}, {path: "/"})
} }
let error: string let error: string

View File

@@ -1,11 +1,11 @@
<script lang="ts"> <script lang="ts">
import Button from "@lib/components/Button.svelte" import Button from "@lib/components/Button.svelte"
import LogInBurrow from "@app/components/LogInBurrow.svelte" import LogInPassword from "@app/components/LogInPassword.svelte"
import {pushModal} from "@app/modal" import {pushModal} from "@app/modal"
export let email export let email
const login = () => pushModal(LogInBurrow) const login = () => pushModal(LogInPassword)
</script> </script>
<div class="column gap-4"> <div class="column gap-4">