This commit is contained in:
parent
5ff8be68b8
commit
c6042a8261
@ -6,7 +6,7 @@ import Key01 from "../../components/icons/key-01";
|
|||||||
import Diamond01 from "../../components/icons/diamond-01";
|
import Diamond01 from "../../components/icons/diamond-01";
|
||||||
import UsbFlashDrive from "../../components/icons/usb-flash-drive";
|
import UsbFlashDrive from "../../components/icons/usb-flash-drive";
|
||||||
import HelpCircle from "../../components/icons/help-circle";
|
import HelpCircle from "../../components/icons/help-circle";
|
||||||
|
import { useNavigate } from "react-router-dom";
|
||||||
import { COMMON_CONTACT_RELAY } from "../../const";
|
import { COMMON_CONTACT_RELAY } from "../../const";
|
||||||
import accountService from "../../services/account";
|
import accountService from "../../services/account";
|
||||||
import serialPortService from "../../services/serial-port";
|
import serialPortService from "../../services/serial-port";
|
||||||
@ -26,7 +26,7 @@ export default function LoginStartView() {
|
|||||||
const location = useLocation();
|
const location = useLocation();
|
||||||
const toast = useToast();
|
const toast = useToast();
|
||||||
const [loading, setLoading] = useState(false);
|
const [loading, setLoading] = useState(false);
|
||||||
|
const navigate = useNavigate();
|
||||||
const signinWithExtension = async () => {
|
const signinWithExtension = async () => {
|
||||||
if (window.nostr) {
|
if (window.nostr) {
|
||||||
try {
|
try {
|
||||||
@ -71,7 +71,8 @@ export default function LoginStartView() {
|
|||||||
} catch (e) {
|
} catch (e) {
|
||||||
if (e instanceof Error) toast({ description: e.message, status: "error" });
|
if (e instanceof Error) toast({ description: e.message, status: "error" });
|
||||||
}
|
}
|
||||||
};
|
navigate("/relays");
|
||||||
|
}
|
||||||
|
|
||||||
if (loading) return <Spinner />;
|
if (loading) return <Spinner />;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user