2020-02-17 22:28:57 +01:00
|
|
|
import React from 'react'
|
|
|
|
import Page from './page';
|
2020-02-25 15:10:42 +01:00
|
|
|
import { UserForm } from '../components/UserForm';
|
2020-02-17 22:28:57 +01:00
|
|
|
|
|
|
|
export default class HomePage extends React.PureComponent {
|
2020-02-25 15:10:42 +01:00
|
|
|
|
|
|
|
|
2020-02-17 22:28:57 +01:00
|
|
|
render() {
|
2020-02-25 15:10:42 +01:00
|
|
|
const onUserFormSubmit = formData => {
|
|
|
|
console.log(formData);
|
|
|
|
};
|
2020-02-17 22:28:57 +01:00
|
|
|
return (
|
|
|
|
<Page title="home">
|
|
|
|
<div className="section">
|
|
|
|
<h1 className="title">Bienvenue sur PleaseWait !</h1>
|
|
|
|
<h2 className="subtitle">Le gestionnaire de ticket simplifié.</h2>
|
2020-02-19 13:51:14 +01:00
|
|
|
<a href="#/logout">Se déconnecter</a>
|
2020-02-25 16:10:20 +01:00
|
|
|
<UserForm onSubmit={onUserFormSubmit} />
|
2020-02-17 22:28:57 +01:00
|
|
|
</div>
|
|
|
|
</Page>
|
|
|
|
);
|
|
|
|
}
|
2020-02-25 15:10:42 +01:00
|
|
|
}
|