Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/app/[language]/confirm-new-email/page-content.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ export default function ConfirmNewEmail() {
t,
isLoaded,
setUser,
user,
fetchAuthGetMe,
]);

Expand Down
10 changes: 9 additions & 1 deletion src/services/social-auth/facebook/facebook-auth.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,15 @@ export default function FacebookAuth() {

return (
<>
<Button variant="contained" color="primary" onClick={onLogin}>
<Button
variant="contained"
sx={{
display: "flex",
margin: "auto",
}}
color="primary"
onClick={onLogin}
>
{t("common:auth.facebook.action")}
</Button>
<FullPageLoader isLoading={isLoading} />
Expand Down
18 changes: 17 additions & 1 deletion src/services/social-auth/google/google-auth.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { CredentialResponse, GoogleLogin } from "@react-oauth/google";
import { useState } from "react";
import { FullPageLoader } from "@/components/full-page-loader";
import useLanguage from "@/services/i18n/use-language";
import Button from "@mui/material/Button";

export default function GoogleAuth() {
const { setUser } = useAuthActions();
Expand Down Expand Up @@ -38,7 +39,22 @@ export default function GoogleAuth() {

return (
<>
<GoogleLogin onSuccess={onSuccess} locale={language} />
<Button
variant="contained"
sx={{
display: "flex",
margin: "auto",
padding: 0,
backgroundColor: "transparent",
border: "none",
boxShadow: "none",
"&:hover": {
backgroundColor: "transparent",
},
}}
>
<GoogleLogin onSuccess={onSuccess} locale={language} />
</Button>
<FullPageLoader isLoading={isLoading} />
</>
);
Expand Down