mirror of
https://github.com/Paris-est-Ludique/intranet.git
synced 2025-09-11 22:06:29 +02:00
create dayWishes component
This commit is contained in:
@@ -9,6 +9,7 @@ import {
|
||||
} from "../../store/volunteerDayWishesSet"
|
||||
import { VolunteerDayWishes } from "../../services/volunteers"
|
||||
import { selectUserJwtToken } from "../../store/auth"
|
||||
import DayWishes from "../../components/VolunteerBoard/DayWishes/DayWishes"
|
||||
|
||||
export type Props = RouteComponentProps
|
||||
|
||||
@@ -62,26 +63,29 @@ const HomePage: FC<Props> = (): JSX.Element => {
|
||||
|
||||
if (jwtToken) {
|
||||
return (
|
||||
<form>
|
||||
<input
|
||||
type="text"
|
||||
id="dayWishes"
|
||||
required
|
||||
value={dayWishes}
|
||||
onChange={onDayWishesChanged}
|
||||
/>
|
||||
<br />
|
||||
<input
|
||||
type="text"
|
||||
id="dayWishesComment"
|
||||
required
|
||||
value={dayWishesComment}
|
||||
onChange={onDayWishesCommentChanged}
|
||||
/>
|
||||
<button type="button" onClick={onSubmit}>
|
||||
Envoyer
|
||||
</button>
|
||||
</form>
|
||||
<div>
|
||||
<DayWishes />
|
||||
<form>
|
||||
<input
|
||||
type="text"
|
||||
id="dayWishes"
|
||||
required
|
||||
value={dayWishes}
|
||||
onChange={onDayWishesChanged}
|
||||
/>
|
||||
<br />
|
||||
<input
|
||||
type="text"
|
||||
id="dayWishesComment"
|
||||
required
|
||||
value={dayWishesComment}
|
||||
onChange={onDayWishesCommentChanged}
|
||||
/>
|
||||
<button type="button" onClick={onSubmit}>
|
||||
Envoyer
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
return <div>Besoin d'être identifié</div>
|
||||
|
Reference in New Issue
Block a user