From 5bd13ced7af1355c795d5299569cb7ec62f74217 Mon Sep 17 00:00:00 2001 From: Thomas Ruoff Date: Thu, 1 Feb 2018 22:01:15 +0100 Subject: [PATCH] add clear button --- client/src/App.css | 4 ++-- client/src/App.js | 28 ++++++++++++++++++++++++++++ 2 files changed, 30 insertions(+), 2 deletions(-) diff --git a/client/src/App.css b/client/src/App.css index a15a092..907afd8 100644 --- a/client/src/App.css +++ b/client/src/App.css @@ -3,8 +3,8 @@ header h1 { } button { - display: block; - margin-top: 1em; + margin-top: 12px; + margin-right: 12px; margin-bottom: 12px; } diff --git a/client/src/App.js b/client/src/App.js index 6c79e36..80e0aba 100644 --- a/client/src/App.js +++ b/client/src/App.js @@ -7,6 +7,26 @@ import {generatePdf, getLatest} from './apiHelper'; import './App.css'; +const DEFAULT_OPTIONS = Object.freeze({ + template: 'brief-fam', + subject: '', + yourRef: '', + yourRefName: '', + yourMail: '', + myRef: '', + customer: '', + invoice: '', + date: '', + signature: '', + specialMail: '', + address: '', + opening: '', + body: '', + closing: '', + ps: '', + enclosing: '', +}); + class App extends Component { componentDidMount() { this._getLatest(); @@ -23,6 +43,7 @@ class App extends Component {