Ajout exemple UserForm

This commit is contained in:
2020-02-25 15:10:42 +01:00
parent 60267305cb
commit 6901b1eca4
2 changed files with 47 additions and 1 deletions

View File

@ -1,16 +1,23 @@
import React from 'react'
import Page from './page';
import { UserForm } from '../components/UserForm';
export default class HomePage extends React.PureComponent {
render() {
const onUserFormSubmit = formData => {
console.log(formData);
};
return (
<Page title="home">
<div className="section">
<h1 className="title">Bienvenue sur PleaseWait !</h1>
<h2 className="subtitle">Le gestionnaire de ticket simplifié.</h2>
<a href="#/logout">Se déconnecter</a>
<UserForm onSubmit={onUserFormSubmit} />
</div>
</Page>
);
}
}
}