Skip to content

Commit

Permalink
Waspello: Fix submit button labels (#2401)
Browse files Browse the repository at this point in the history
  • Loading branch information
dabrorius authored Dec 9, 2024
1 parent 14e7319 commit f2b966a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions examples/waspello/src/auth/LoginPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ const LoginPage = (props) => {
<div className="auth-form-container">
<EmailAndPassForm
title='Log in with your account'
submitButtonLabel='Log in'
userField={usernameFieldVal}
passField={passwordFieldVal}
setUser={setUsernameFieldVal}
Expand Down
1 change: 1 addition & 0 deletions examples/waspello/src/auth/SignupPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ const SignupPage = (props) => {

<EmailAndPassForm
title='Sign up for your account'
submitButtonLabel='Sign up'
userField={usernameFieldVal}
passField={passwordFieldVal}
setUser={setUsernameFieldVal}
Expand Down
4 changes: 2 additions & 2 deletions examples/waspello/src/auth/components/EmailAndPassForm.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const inputFieldClasses = `
transition ease-out duration-200
h-10 px-2 text-sm placeholder:text-neutral-500
`
const EmailAndPassForm = ({ title, userField, passField, setUser, setPass, handleSignup }) => (
const EmailAndPassForm = ({ title, submitButtonLabel, userField, passField, setUser, setPass, handleSignup }) => (
<div className='w-full text-center'>
<h2 className='text-base font-bold text-neutral-600'>
{title}
Expand All @@ -34,7 +34,7 @@ const EmailAndPassForm = ({ title, userField, passField, setUser, setPass, handl
hover:bg-yellow-400
`}
type='submit'
value='Sign up'
value={submitButtonLabel}
/>
</form>
</div>
Expand Down

0 comments on commit f2b966a

Please sign in to comment.