From a89cb4e727cb28c44a1262b8976b06cecacbf16a Mon Sep 17 00:00:00 2001 From: jonnetanninen Date: Thu, 8 Feb 2018 16:46:24 +0200 Subject: [PATCH 01/27] Set min height for the editor --- assets/sass/hel/hearing-form.scss | 1 + 1 file changed, 1 insertion(+) diff --git a/assets/sass/hel/hearing-form.scss b/assets/sass/hel/hearing-form.scss index ae2c1fa47..cdbafc0b8 100644 --- a/assets/sass/hel/hearing-form.scss +++ b/assets/sass/hel/hearing-form.scss @@ -138,6 +138,7 @@ $node_modules: "../../../node_modules"; .rich-text-editor { .DraftEditor-editorContainer { border: 2px solid $black; + min-height: 90px; } } From 2152a36f154a313dd228100bd0290e979ed449c7 Mon Sep 17 00:00:00 2001 From: jonnetanninen Date: Thu, 8 Feb 2018 16:53:55 +0200 Subject: [PATCH 02/27] =?UTF-8?q?Replace=20rekister=C3=B6ityneet=20with=20?= =?UTF-8?q?kirjautuneet?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/i18n/fi.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/i18n/fi.json b/src/i18n/fi.json index 9f74b9151..2c96942da 100644 --- a/src/i18n/fi.json +++ b/src/i18n/fi.json @@ -39,7 +39,7 @@ "hearingCommenting": "Kommentointi", "openCommenting": "Avoin kommentointi", "noCommenting": "Ei kommentointia", - "registeredUsersOnly": "Vain rekisteröityneet käyttäjät", + "registeredUsersOnly": "Vain kirjautuneet käyttäjät", "hearingContacts": "Yhteyshenkilöt", "hearingContactsPlaceholder": "Valitse kuulemisen yhteyshenkilöt", "hearingImage": "Kuulemisen kuva", From 58c49b2826086ac0173df9ca0c75555a0d3dc3c8 Mon Sep 17 00:00:00 2001 From: jonnetanninen Date: Mon, 12 Feb 2018 10:39:24 +0200 Subject: [PATCH 03/27] Replace success and error messages with react-toastify --- package.json | 1 + src/App.js | 2 ++ src/utils/notify.js | 28 ++++++++++++++++++++++++---- yarn.lock | 41 ++++++++++++++++++++++++++++++++++++++++- 4 files changed, 67 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 7e549baae..f362762db 100644 --- a/package.json +++ b/package.json @@ -105,6 +105,7 @@ "react-router-redux": "^5.0.0-alpha.6", "react-select": "^1.0.0-rc.2", "react-slick": "^0.15.4", + "react-toastify": "^3.3.2", "react-waypoint": "^4.1.0", "redux": "^3.0.4", "redux-actions": "0.13.0", diff --git a/src/App.js b/src/App.js index 7a7dbe0ef..c758c28a1 100644 --- a/src/App.js +++ b/src/App.js @@ -11,6 +11,7 @@ import config from './config'; import {getUser} from './selectors/user'; import Routes from './routes'; import {withRouter} from 'react-router-dom'; +import {ToastContainer} from 'react-toastify'; class App extends React.Component { getChildContext() { @@ -58,6 +59,7 @@ class App extends React.Component {