The weeb for the next gen discord boat - Wamellow wamellow.com
bot discord
3
fork

Configure Feed

Select the types of activity you want to include in your feed.

refactor: replace router.push with window.location.href (#34)

authored by

Luna Seemann and committed by
GitHub
60eadc89 77a09845

+1 -5
+1 -5
app/profile/connections/page.tsx
··· 9 9 import { type ApiV1UsersMeConnectionsGetResponse, ConnectionType } from "@/typings"; 10 10 import { cn } from "@/utils/cn"; 11 11 import Image from "next/image"; 12 - import { useRouter } from "next/navigation"; 13 12 import { useState } from "react"; 14 13 import { BsSpotify } from "react-icons/bs"; 15 14 import { HiFingerPrint, HiTrash } from "react-icons/hi"; ··· 89 88 <Button 90 89 onClick={() => { 91 90 if (disabled) return; 92 - // idk with router.push logout doesn't update 93 91 window.location.href = `/login/${name.toLowerCase()}${connection ? "?logout=true" : ""}`; 94 92 }} 95 93 disabled={disabled} ··· 110 108 } 111 109 112 110 function BlueskyConnectPDS() { 113 - const router = useRouter(); 114 - 115 111 const [handle, setHandle] = useState(""); 116 112 const [open, setOpen] = useState<boolean>(false); 117 113 ··· 130 126 isOpen={open} 131 127 onClose={() => setOpen(false)} 132 128 onSubmit={() => { 133 - router.push(`/login/bluesky?handle=${handle}`); 129 + window.location.href = `/login/bluesky?handle=${handle}`; 134 130 return undefined; 135 131 }} 136 132 buttonName="Continue"