Skip to content

Commit

Permalink
WAHT
Browse files Browse the repository at this point in the history
  • Loading branch information
VulpoTheDev committed May 14, 2022
1 parent 0b96578 commit edfd515
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 5 deletions.
1 change: 0 additions & 1 deletion src/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ export default function Header() {
</a>
<Link href="/profile">
<a>
{console.log(stuff)}
<img
src={stuff.data.user!.image}
alt="User avatar"
Expand Down
7 changes: 4 additions & 3 deletions src/pages/login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@ import styles from "../styles/Login.module.scss"
export default function Login() {
const [email, setEmail] = useState("")
const session = useSession()
const router = useRouter()

if (session.data && session.status !== "loading") {
return Router.push("/profile")
return router.push("/")
}

return (
Expand Down Expand Up @@ -40,7 +41,7 @@ export default function Login() {
<button
onClick={() =>
signIn("google", {
redirect: true
callbackUrl: "/profile"
})
}
>
Expand All @@ -50,7 +51,7 @@ export default function Login() {
<button
onClick={() =>
signIn("twitter", {
redirect: true
callbackUrl: "/profile"
})
}
>
Expand Down
1 change: 0 additions & 1 deletion src/pages/user/[userID].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ export default function User() {
setVerified(true)
}, [])

console.log(verified)
if (loading) {
return (
<Container>
Expand Down
7 changes: 7 additions & 0 deletions src/styles/Header.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,17 @@
align-items: center;
a {
margin: 0 5px;
#avatar {
width: 50px;
height: 50px;
border-radius: 50%;
border: white 3px solid;
}
}
button {
@include appButtonStyles();
}

}

#login-button {
Expand Down
1 change: 1 addition & 0 deletions src/styles/User.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@

p {
font-weight: 600;
font-size: 20px;
}
}

Expand Down

0 comments on commit edfd515

Please sign in to comment.