Skip to content

Commit

Permalink
feat: auth page
Browse files Browse the repository at this point in the history
  • Loading branch information
Nilumilak committed Dec 23, 2024
1 parent 81cafdc commit f479ee3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ interface Props {
}

function AuthCard({ serviceName, authPath, Icon = ServiceImage }: Props) {
const navigate = useNavigate();

return (
<S.AuthCardStyled>
<S.ServiceData>
Expand All @@ -27,7 +25,7 @@ function AuthCard({ serviceName, authPath, Icon = ServiceImage }: Props) {
<S.ServiceButton
buttonSize="L"
buttonType="primary"
onClick={() => navigate(`${window.basePath}${authPath}`)}
onClick={() => window.location.replace(`${window.basePath}${authPath}`)}
>
Log in with {serviceName}
</S.ServiceButton>
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/contexts/GlobalSettingsContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const GlobalSettingsProvider: React.FC<

React.useEffect(() => {
if (info.data?.redirect && !info.isFetching) {
navigate('auth');
navigate('login');
return;
}

Expand Down

0 comments on commit f479ee3

Please sign in to comment.