Account preview done

This commit is contained in:
2021-10-25 17:12:37 -03:00
parent cef25f5999
commit 423c8f9bfe
10 changed files with 239 additions and 9 deletions

View File

@@ -6,15 +6,20 @@ import {withRouter} from 'react-router'
const Identify = (props) => {
const auth = getAuth()
React.useEffect(() => {
onAuthStateChanged(auth, (user) => {
if (user) {
props.history.push('/admin-place')
}
})
const auth = getAuth()
onAuthStateChanged(auth, (user) => {
if (user) {
props.history.push('/admin-place')
}
})
}, [props.history])
return (
<Form />
)