Open cmukoyi opened 1 year ago
The onSubmit functionality for the form has no response when you run the app
This is from the ActivityForm.tsx
<Segment clearing> <Form onSubmit={handleSubmit} autoComplete='off' > <Form.Input placeholder='Title' value={activity.title} name ='title' onChange={hanldeInputChange}/> <Form.TextArea placeholder='Description' value={activity.description} name='description' onChange={hanldeInputChange} /> <Form.Input placeholder='Category' value={activity.category} name='category' onChange={hanldeInputChange} /> <Form.Input type = 'date' placeholder='Date' value={activity.date} name='date' onChange={hanldeInputChange} /> <Form.Input placeholder='City' value={activity.city} name='city' onChange={hanldeInputChange}/> <Form.Input placeholder='Venue' value={activity.venue} name='venue' onChange={hanldeInputChange}/> <Button type='submit' loading = {submitting} floated = 'right' positive content = 'Submit' /> <Button onClick={closeForm} floated = 'right' type='button' content = 'Cancel' /> </Form> </Segment>
<Segment clearing>
<Form onSubmit={handleSubmit} autoComplete='off' >
<Form.Input placeholder='Title' value={activity.title} name ='title' onChange={hanldeInputChange}/>
<Form.TextArea placeholder='Description' value={activity.description} name='description' onChange={hanldeInputChange} />
<Form.Input placeholder='Category' value={activity.category} name='category' onChange={hanldeInputChange} />
<Form.Input type = 'date' placeholder='Date' value={activity.date} name='date' onChange={hanldeInputChange} />
<Form.Input placeholder='City' value={activity.city} name='city' onChange={hanldeInputChange}/>
<Form.Input placeholder='Venue' value={activity.venue} name='venue' onChange={hanldeInputChange}/>
<Button type='submit' loading = {submitting} floated = 'right' positive content = 'Submit' />
<Button onClick={closeForm} floated = 'right' type='button' content = 'Cancel' />
</Form>
</Segment>
The onSubmit functionality for the form has no response when you run the app
This is from the ActivityForm.tsx
<Segment clearing>
<Form onSubmit={handleSubmit} autoComplete='off' >
<Form.Input placeholder='Title' value={activity.title} name ='title' onChange={hanldeInputChange}/>
<Form.TextArea placeholder='Description' value={activity.description} name='description' onChange={hanldeInputChange} />
<Form.Input placeholder='Category' value={activity.category} name='category' onChange={hanldeInputChange} />
<Form.Input type = 'date' placeholder='Date' value={activity.date} name='date' onChange={hanldeInputChange} />
<Form.Input placeholder='City' value={activity.city} name='city' onChange={hanldeInputChange}/>
<Form.Input placeholder='Venue' value={activity.venue} name='venue' onChange={hanldeInputChange}/>
<Button type='submit' loading = {submitting} floated = 'right' positive content = 'Submit' />
<Button onClick={closeForm} floated = 'right' type='button' content = 'Cancel' />
</Form>
</Segment>