Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#4 Create new arguments #217

Merged
merged 18 commits into from
Jun 26, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
submitButtonLabel fix
  • Loading branch information
Monstarrrr committed Jun 23, 2024
commit bc62199a508e7ff36a87b5864d8dda6bbceaffa4
4 changes: 2 additions & 2 deletions frontend/app/_components/form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { ChangeEvent, useEffect, useState } from 'react'

export default function Form(props: FormProps) {
const {
buttonLabel,
submitButtonLabel,
id,
inputsErrors,
inputsFields,
Expand Down Expand Up @@ -136,7 +136,7 @@ export default function Form(props: FormProps) {
{successMessage && <span style={{ color: 'green' }}>{successMessage}</span>}
<br />
<button disabled={loading} type='submit'>
{loading ? 'Loading...' : buttonLabel}
{loading ? 'Loading...' : submitButtonLabel}
</button>
</form>
)
Expand Down