fixed build errors, again
This commit is contained in:
@@ -18,7 +18,7 @@ import LumeSymbol from '@assets/icons/Lume';
|
||||
|
||||
import { writeStorage } from '@rehooks/local-storage';
|
||||
import { useCallback, useContext, useEffect, useRef } from 'react';
|
||||
import { navigate, prefetch } from 'vite-plugin-ssr/client/router';
|
||||
import { navigate } from 'vite-plugin-ssr/client/router';
|
||||
|
||||
export function Page() {
|
||||
const [pool, relays]: any = useContext(RelayContext);
|
||||
@@ -123,7 +123,6 @@ export function Page() {
|
||||
() => {
|
||||
updateLastLogin(dateToUnix(now.current));
|
||||
timeout.current = setTimeout(() => {
|
||||
prefetch('/newsfeed/following');
|
||||
navigate('/newsfeed/following');
|
||||
}, 5000);
|
||||
},
|
||||
@@ -153,7 +152,6 @@ export function Page() {
|
||||
// fetch data
|
||||
fetchData(account, account.follows);
|
||||
} else {
|
||||
prefetch('/onboarding');
|
||||
navigate('/onboarding', { overwriteLastHistoryEntry: true });
|
||||
}
|
||||
})
|
||||
|
||||
@@ -6,13 +6,8 @@ import { createAccount } from '@utils/storage';
|
||||
import { EyeClose, EyeEmpty } from 'iconoir-react';
|
||||
import { generatePrivateKey, getEventHash, getPublicKey, nip19, signEvent } from 'nostr-tools';
|
||||
import { useCallback, useContext, useMemo, useState } from 'react';
|
||||
import { Config, names, uniqueNamesGenerator } from 'unique-names-generator';
|
||||
import { navigate } from 'vite-plugin-ssr/client/router';
|
||||
|
||||
const config: Config = {
|
||||
dictionaries: [names],
|
||||
};
|
||||
|
||||
export function Page() {
|
||||
const [pool, relays]: any = useContext(RelayContext);
|
||||
|
||||
@@ -20,7 +15,7 @@ export function Page() {
|
||||
const [loading, setLoading] = useState(false);
|
||||
|
||||
const privkey = useMemo(() => generatePrivateKey(), []);
|
||||
const name = useMemo(() => uniqueNamesGenerator(config).toString(), []);
|
||||
const name = 'Pleb';
|
||||
|
||||
const pubkey = getPublicKey(privkey);
|
||||
const npub = nip19.npubEncode(pubkey);
|
||||
|
||||
Reference in New Issue
Block a user