Skip to content

Commit f2b966a

Browse files
authored
Waspello: Fix submit button labels (#2401)
1 parent 14e7319 commit f2b966a

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

examples/waspello/src/auth/LoginPage.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ const LoginPage = (props) => {
3838
<div className="auth-form-container">
3939
<EmailAndPassForm
4040
title='Log in with your account'
41+
submitButtonLabel='Log in'
4142
userField={usernameFieldVal}
4243
passField={passwordFieldVal}
4344
setUser={setUsernameFieldVal}

examples/waspello/src/auth/SignupPage.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ const SignupPage = (props) => {
4141

4242
<EmailAndPassForm
4343
title='Sign up for your account'
44+
submitButtonLabel='Sign up'
4445
userField={usernameFieldVal}
4546
passField={passwordFieldVal}
4647
setUser={setUsernameFieldVal}

examples/waspello/src/auth/components/EmailAndPassForm.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const inputFieldClasses = `
77
transition ease-out duration-200
88
h-10 px-2 text-sm placeholder:text-neutral-500
99
`
10-
const EmailAndPassForm = ({ title, userField, passField, setUser, setPass, handleSignup }) => (
10+
const EmailAndPassForm = ({ title, submitButtonLabel, userField, passField, setUser, setPass, handleSignup }) => (
1111
<div className='w-full text-center'>
1212
<h2 className='text-base font-bold text-neutral-600'>
1313
{title}
@@ -34,7 +34,7 @@ const EmailAndPassForm = ({ title, userField, passField, setUser, setPass, handl
3434
hover:bg-yellow-400
3535
`}
3636
type='submit'
37-
value='Sign up'
37+
value={submitButtonLabel}
3838
/>
3939
</form>
4040
</div>

0 commit comments

Comments
 (0)