@@ -16,27 +16,14 @@ import ScreenWrapper from '../components/ScreenWrapper';
16
16
import FullScreenLoadingIndicator from '../components/FullscreenLoadingIndicator' ;
17
17
import withLocalize , { withLocalizePropTypes } from '../components/withLocalize' ;
18
18
import compose from '../libs/compose' ;
19
-
20
- const personalDetailsPropTypes = PropTypes . shape ( {
21
- /** The login of the person (either email or phone number) */
22
- login : PropTypes . string . isRequired ,
23
-
24
- /** The URL of the person's avatar (there should already be a default avatar if
25
- the person doesn't have their own avatar uploaded yet) */
26
- avatar : PropTypes . string . isRequired ,
27
-
28
- /** This is either the user's full name, or their login if full name is an empty string */
29
- displayName : PropTypes . string . isRequired ,
30
-
31
- ...withLocalizePropTypes ,
32
- } ) ;
19
+ import personalDetailsPropType from './personalDetailsPropType' ;
33
20
34
21
const propTypes = {
35
22
/** Beta features list */
36
23
betas : PropTypes . arrayOf ( PropTypes . string ) . isRequired ,
37
24
38
25
/** All of the personal details for everyone */
39
- personalDetails : PropTypes . objectOf ( personalDetailsPropTypes ) . isRequired ,
26
+ personalDetails : personalDetailsPropType . isRequired ,
40
27
41
28
/** All reports shared with the user */
42
29
reports : PropTypes . shape ( {
@@ -50,6 +37,8 @@ const propTypes = {
50
37
} ) . isRequired ,
51
38
52
39
...windowDimensionsPropTypes ,
40
+
41
+ ...withLocalizePropTypes ,
53
42
} ;
54
43
55
44
class NewChatPage extends Component {
0 commit comments