File tree Expand file tree Collapse file tree 2 files changed +30
-2
lines changed Expand file tree Collapse file tree 2 files changed +30
-2
lines changed Original file line number Diff line number Diff line change
1
+ import { useAppDispatch } from "../hooks"
2
+ import {
3
+ SignInWithButton ,
4
+ signOutAndRedirectToHome ,
5
+ useAuth
6
+ } from "components/auth"
7
+ import { AuthFlowStep , authStepChanged } from "components/auth/redux"
8
+ import { useTranslation } from "next-i18next"
9
+ import { useContext , useEffect , useState } from "react"
10
+
11
+ export default function LoginPage ( ) {
12
+ const { t } = useTranslation ( "auth" )
13
+ const dispatch = useAppDispatch ( )
14
+ const setCurrentModal = ( step : AuthFlowStep ) =>
15
+ dispatch ( authStepChanged ( step ) )
16
+
17
+ useEffect ( ( ) => {
18
+ setCurrentModal ( "start" )
19
+ } )
20
+
21
+ return (
22
+ < div >
23
+ < p > Hello Login World</ p >
24
+ < br />
25
+ < p > handle if arriving on page but already logged in</ p >
26
+ </ div >
27
+ )
28
+ }
Original file line number Diff line number Diff line change
1
+ import LoginPage from "components/Login/login"
1
2
import { createPage } from "../components/page"
2
- import { UnsubscribeConfirm } from "../components/Email/unsubscribe"
3
3
import { createGetStaticTranslationProps } from "components/translations"
4
4
5
5
export default createPage ( {
6
6
title : "Login" ,
7
7
Page : ( ) => {
8
- return < div > Hello World </ div >
8
+ return < LoginPage / >
9
9
}
10
10
} )
11
11
You can’t perform that action at this time.
0 commit comments