From a6196821c812f1f043fe10ec815631c08055e75b Mon Sep 17 00:00:00 2001 From: Kimmo Puputti Date: Thu, 2 Nov 2017 15:33:50 +0200 Subject: [PATCH] Add or edit bio in profile settings --- .../ProfileSettingsForm.css | 4 +++ .../ProfileSettingsForm.js | 25 ++++++++++++++++++- .../ProfileSettingsPage.js | 16 +++++++----- src/translations/en.json | 4 +++ src/util/propTypes.js | 2 ++ 5 files changed, 44 insertions(+), 7 deletions(-) diff --git a/src/containers/ProfileSettingsForm/ProfileSettingsForm.css b/src/containers/ProfileSettingsForm/ProfileSettingsForm.css index 24e1eaba..30d89982 100644 --- a/src/containers/ProfileSettingsForm/ProfileSettingsForm.css +++ b/src/containers/ProfileSettingsForm/ProfileSettingsForm.css @@ -276,6 +276,10 @@ width: calc(66% - 9px); } +.bioInfo { + color: var(--matterColorAnti); +} + .submitButton { margin-top: 24px; } diff --git a/src/containers/ProfileSettingsForm/ProfileSettingsForm.js b/src/containers/ProfileSettingsForm/ProfileSettingsForm.js index 1d15e5ea..0e9596d7 100644 --- a/src/containers/ProfileSettingsForm/ProfileSettingsForm.js +++ b/src/containers/ProfileSettingsForm/ProfileSettingsForm.js @@ -146,6 +146,14 @@ class ProfileSettingsFormComponent extends Component { }); const lastNameRequired = validators.required(lastNameRequiredMessage); + // Bio + const bioLabel = intl.formatMessage({ + id: 'ProfileSettingsForm.bioLabel', + }); + const bioPlaceholder = intl.formatMessage({ + id: 'ProfileSettingsForm.bioPlaceholder', + }); + const uploadingOverlay = uploadInProgress || this.state.uploadDelay ? (
@@ -241,7 +249,7 @@ class ProfileSettingsFormComponent extends Component {
-
+

@@ -266,6 +274,21 @@ class ProfileSettingsFormComponent extends Component { />
+
+

+ +

+ +

+ +

+
{submitError}