Skip to content

Commit 2f8b207

Browse files
NilumilakHaarolean
authored andcommitted
feat: auth page
1 parent fb6dd58 commit 2f8b207

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

frontend/src/components/AuthPage/SignIn/OAuthSignIn/AuthCard/AuthCard.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ interface Props {
1111
}
1212

1313
function AuthCard({ serviceName, authPath, Icon = ServiceImage }: Props) {
14-
const navigate = useNavigate();
15-
1614
return (
1715
<S.AuthCardStyled>
1816
<S.ServiceData>
@@ -27,7 +25,7 @@ function AuthCard({ serviceName, authPath, Icon = ServiceImage }: Props) {
2725
<S.ServiceButton
2826
buttonSize="L"
2927
buttonType="primary"
30-
onClick={() => navigate(`${window.basePath}${authPath}`)}
28+
onClick={() => window.location.replace(`${window.basePath}${authPath}`)}
3129
>
3230
Log in with {serviceName}
3331
</S.ServiceButton>

frontend/src/components/contexts/GlobalSettingsContext.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export const GlobalSettingsProvider: React.FC<
2323

2424
React.useEffect(() => {
2525
if (info.data?.redirect && !info.isFetching) {
26-
navigate('auth');
26+
navigate('login');
2727
return;
2828
}
2929

0 commit comments

Comments
 (0)