add error notification next to send button

This commit is contained in:
Thomas Ruoff
2020-09-14 23:25:18 +02:00
parent c081640eaa
commit 9a0bf11749
2 changed files with 10 additions and 1 deletions

View File

@@ -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>
</>