mirror of
https://github.com/tomru/pfadi-bussle.git
synced 2026-03-03 06:27:11 +01:00
add error notification next to send button
This commit is contained in:
@@ -73,11 +73,15 @@ function WizardInternal() {
|
||||
<DateSelect />
|
||||
<Reason />
|
||||
<Contact />
|
||||
<div>{postDataError}</div>
|
||||
<div>
|
||||
<button type="submit" disabled={postData} className="btn btn-blue">
|
||||
{postData ? 'Speichern...' : 'Absenden'}
|
||||
</button>
|
||||
{postDataError && (
|
||||
<div className="error-message">
|
||||
<strong>Error:</strong> {postDataError}
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
</form>
|
||||
</>
|
||||
|
||||
Reference in New Issue
Block a user