From a90285a4acf84908edd29d41585f0e6ac5581dba Mon Sep 17 00:00:00 2001 From: Fedor Katurov Date: Wed, 13 Nov 2019 18:02:09 +0700 Subject: [PATCH] user settings mechanism --- src/components/input/Textarea/index.tsx | 4 +- .../profile/ProfileDescription/index.tsx | 1 - .../profile/ProfileSettings/index.tsx | 121 ++++++++++++++++++ .../profile/ProfileSettings/styles.scss | 14 ++ .../dialogs/ProfileDialog/index.tsx | 2 + src/redux/auth/actions.ts | 5 + src/redux/auth/constants.ts | 1 + src/redux/auth/reducer.ts | 1 + src/redux/auth/sagas.ts | 15 ++- src/redux/auth/types.ts | 2 + 10 files changed, 162 insertions(+), 4 deletions(-) create mode 100644 src/components/profile/ProfileSettings/index.tsx create mode 100644 src/components/profile/ProfileSettings/styles.scss diff --git a/src/components/input/Textarea/index.tsx b/src/components/input/Textarea/index.tsx index d1e42ec5..92e593a2 100644 --- a/src/components/input/Textarea/index.tsx +++ b/src/components/input/Textarea/index.tsx @@ -30,7 +30,6 @@ type IProps = TextareaHTMLAttributes & { const Textarea = memo( ({ - value, placeholder, className, minRows = 3, @@ -40,6 +39,7 @@ const Textarea = memo( title = '', status = '', seamless, + value, ...props }) => { const [rows, setRows] = useState(minRows || 1); @@ -97,7 +97,7 @@ const Textarea = memo(