1
0
Fork 0
mirror of https://github.com/plankanban/planka.git synced 2025-07-31 19:19:44 +02:00

Add phone and organization fields to user

This commit is contained in:
Maksim Eltyshev 2020-04-09 18:27:28 +05:00
parent c4acb3eb24
commit f3e0cadca6
11 changed files with 102 additions and 13 deletions

View file

@ -18,6 +18,8 @@ const AccountPane = React.memo(
name,
username,
avatar,
phone,
organization,
isAvatarUploading,
usernameUpdateForm,
emailUpdateForm,
@ -53,6 +55,8 @@ const AccountPane = React.memo(
<EditInformation
defaultData={{
name,
phone,
organization,
}}
onUpdate={onUpdate}
/>
@ -120,6 +124,8 @@ AccountPane.propTypes = {
name: PropTypes.string.isRequired,
username: PropTypes.string,
avatar: PropTypes.string,
phone: PropTypes.string,
organization: PropTypes.string,
isAvatarUploading: PropTypes.bool.isRequired,
/* eslint-disable react/forbid-prop-types */
usernameUpdateForm: PropTypes.object.isRequired,
@ -139,6 +145,8 @@ AccountPane.propTypes = {
AccountPane.defaultProps = {
username: undefined,
avatar: undefined,
phone: undefined,
organization: undefined,
};
export default AccountPane;