Revert "issue-129 tweaks after deploy test"

This reverts commit 77a50b4f17.
This commit is contained in:
Kurt Hutten
2020-12-05 18:05:35 +11:00
parent 77a50b4f17
commit 73e1dccdb8
6 changed files with 16 additions and 28 deletions

View File

@@ -6,13 +6,10 @@ import InputTextForm from 'src/components/InputTextForm'
import OutBound from 'src/components/OutBound'
import { Form, Submit } from '@redwoodjs/forms'
import { useAuth } from '@redwoodjs/auth'
import { useFlash } from '@redwoodjs/web'
import { Link, routes } from '@redwoodjs/router'
import { subscribe } from 'src/helpers/subscribe'
const LoginModal = ({ open, onClose, shouldStartWithSignup = false }) => {
const { logIn, signUp } = useAuth()
const { addMessage } = useFlash()
const [tab, setTab] = useState(shouldStartWithSignup ? 0 : 1)
const onTabChange = (_, newValue) => {
@@ -25,9 +22,6 @@ const LoginModal = ({ open, onClose, shouldStartWithSignup = false }) => {
const onSubmitSignUp = async ({ email, password, name, userName }) => {
try {
setError('')
if (checkBox) {
subscribe({ email, addMessage })
}
await signUp({
email,
password,