Rename LogInPassword
This commit is contained in:
parent
a58fc68235
commit
c2aa829334
5 changed files with 9 additions and 9 deletions
|
|
@ -10,7 +10,7 @@
|
|||
import SignUp from "@app/components/SignUp.svelte"
|
||||
import InfoNostr from "@app/components/InfoNostr.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 {PLATFORM_NAME, BURROW_URL} from "@app/state"
|
||||
import {pushToast} from "@app/toast"
|
||||
|
|
@ -68,7 +68,7 @@
|
|||
}
|
||||
})
|
||||
|
||||
const loginWithBurrow = () => pushModal(LogInBurrow)
|
||||
const loginWithPassword = () => pushModal(LogInPassword)
|
||||
|
||||
const loginWithBunker = () => pushModal(LogInBunker)
|
||||
|
||||
|
|
@ -95,7 +95,7 @@
|
|||
you to own your social identity.
|
||||
</p>
|
||||
{#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}
|
||||
<span class="loading loading-spinner mr-3" />
|
||||
{:else}
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@
|
|||
}
|
||||
}
|
||||
|
||||
const signupBurrow = withLoading(async () => {
|
||||
const signupPassword = withLoading(async () => {
|
||||
const res = await postJson(BURROW_URL + "/user", {email, password})
|
||||
|
||||
if (res.error) {
|
||||
|
|
@ -93,7 +93,7 @@
|
|||
|
||||
const signup = () => {
|
||||
if (BURROW_URL) {
|
||||
signupBurrow()
|
||||
signupPassword()
|
||||
} else {
|
||||
signupNsecApp()
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
import {postJson, sleep} from "@welshman/lib"
|
||||
import Button from "@lib/components/Button.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 {BURROW_URL} from "@app/state"
|
||||
|
||||
|
|
@ -11,7 +11,7 @@
|
|||
export let token
|
||||
|
||||
const login = () => {
|
||||
pushModal(LogInBurrow, {email}, {path: "/"})
|
||||
pushModal(LogInPassword, {email}, {path: "/"})
|
||||
}
|
||||
|
||||
let error: string
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
<script lang="ts">
|
||||
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"
|
||||
|
||||
export let email
|
||||
|
||||
const login = () => pushModal(LogInBurrow)
|
||||
const login = () => pushModal(LogInPassword)
|
||||
</script>
|
||||
|
||||
<div class="column gap-4">
|
||||
|
|
|
|||
Loading…
Reference in a new issue