Skip to content

Commit d1975c2

Browse files
committed
fix: use external link for login button
1 parent 970aced commit d1975c2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

apps/renderer/src/modules/user/LoginButton.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { UserArrowLeftIcon } from "@follow/components/icons/user.jsx"
22
import { ActionButton } from "@follow/components/ui/button/index.js"
33
import type { FC } from "react"
44
import { useTranslation } from "react-i18next"
5-
import { Link } from "react-router"
65

76
import { LoginModalContent } from "~/modules/auth/LoginModalContent"
87

@@ -37,5 +36,5 @@ export const LoginButton: FC<LoginProps> = (props) => {
3736
<UserArrowLeftIcon className="size-4" />
3837
</ActionButton>
3938
)
40-
return method === "modal" ? Content : <Link to="/login">{Content}</Link>
39+
return method === "modal" ? Content : <a href="/login">{Content}</a>
4140
}

0 commit comments

Comments
 (0)