web: People: Renamed getContacts to getUserContacts selector
This commit is contained in:
parent
3c1d5f9047
commit
071cf994f0
@ -2,7 +2,7 @@ import React, { useCallback } from 'react';
|
|||||||
import { withRouter } from 'react-router';
|
import { withRouter } from 'react-router';
|
||||||
import { Text, Avatar, Button, ToggleContent, IconButton, Link } from 'asc-web-components';
|
import { Text, Avatar, Button, ToggleContent, IconButton, Link } from 'asc-web-components';
|
||||||
import { connect } from 'react-redux';
|
import { connect } from 'react-redux';
|
||||||
import { getUserRole, getContacts } from '../../../../../store/people/selectors';
|
import { getUserRole, getUserContacts } from '../../../../../store/people/selectors';
|
||||||
|
|
||||||
const profileWrapper = {
|
const profileWrapper = {
|
||||||
display: "flex",
|
display: "flex",
|
||||||
@ -128,7 +128,7 @@ const createContacts = (contacts) => {
|
|||||||
const SectionBodyContent = (props) => {
|
const SectionBodyContent = (props) => {
|
||||||
const { profile, history, isSelf, settings } = props;
|
const { profile, history, isSelf, settings } = props;
|
||||||
//console.log(profile, settings);
|
//console.log(profile, settings);
|
||||||
const contacts = profile.contacts && getContacts(profile.contacts);
|
const contacts = profile.contacts && getUserContacts(profile.contacts);
|
||||||
const role = getUserRole(profile);
|
const role = getUserRole(profile);
|
||||||
const workFrom = getFormattedDate(profile.workFrom);
|
const workFrom = getFormattedDate(profile.workFrom);
|
||||||
const birthDay = getFormattedDate(profile.birthday);
|
const birthDay = getFormattedDate(profile.birthday);
|
||||||
|
@ -62,7 +62,7 @@ export const getUserRole = user => {
|
|||||||
else return "user";
|
else return "user";
|
||||||
};
|
};
|
||||||
|
|
||||||
export const getContacts = (contacts) => {
|
export const getUserContacts = (contacts) => {
|
||||||
const pattern = {
|
const pattern = {
|
||||||
contact: [
|
contact: [
|
||||||
{ type: "mail", icon: "MailIcon" },
|
{ type: "mail", icon: "MailIcon" },
|
||||||
|
Loading…
Reference in New Issue
Block a user