refactor(login): update the delay message and increase timers

This commit is contained in:
enes 2024-09-12 12:17:58 +02:00
parent 7c80643aba
commit 9191336722

View File

@ -25,8 +25,8 @@ import { NIP05_REGEX } from '../../constants'
import styles from './styles.module.scss' import styles from './styles.module.scss'
import { TimeoutError } from '../../types/errors/TimeoutError' import { TimeoutError } from '../../types/errors/TimeoutError'
const EXTENSION_LOGIN_DELAY_SECONDS = 2 const EXTENSION_LOGIN_DELAY_SECONDS = 5
const EXTENSION_LOGIN_TIMEOUT_SECONDS = EXTENSION_LOGIN_DELAY_SECONDS + 10 const EXTENSION_LOGIN_TIMEOUT_SECONDS = EXTENSION_LOGIN_DELAY_SECONDS + 55
export const Nostr = () => { export const Nostr = () => {
const [searchParams] = useSearchParams() const [searchParams] = useSearchParams()
@ -375,7 +375,14 @@ export const Nostr = () => {
<LoadingSpinner desc={loadingSpinnerDesc}> <LoadingSpinner desc={loadingSpinnerDesc}>
{isExtensionSlow && ( {isExtensionSlow && (
<> <>
<p>Extension is not responding</p> <p>
Your nostr extension is not responding. Check these
alternatives:{' '}
<a href="https://github.com/aljazceru/awesome-nostr?tab=readme-ov-file#nip-07-browser-extensions">
https://github.com/aljazceru/awesome-nostr
</a>
</p>
<br />
<Button <Button
fullWidth fullWidth
variant="contained" variant="contained"