Skip to content

Commit 9ceb2d4

Browse files
committed
cleanup imports and propTypes + fix merge conflict
1 parent aa9b5df commit 9ceb2d4

File tree

3 files changed

+14
-30
lines changed

3 files changed

+14
-30
lines changed

src/components/FullNameInputRow.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import * as React from 'react';
21
import PropTypes from 'prop-types';
32
import {TextInput, View} from 'react-native';
43
import _ from 'underscore';

src/languages/es.js

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -405,14 +405,4 @@ export default {
405405
growlMessageInvalidPhone: 'El teléfono no es valido. Intentalo de nuevo agregando el código de país. P. ej.: +15005550006',
406406
growlMessageEmptyName: 'Por favor ingresa tu nombre completo',
407407
},
408-
requestCallPage: {
409-
requestACall: 'Llámame por teléfono',
410-
description: '¿Necesitas ayuda configurando tu cuenta? Nuestro equipo de guías puede ayudarte.',
411-
instructions: 'Escribe tu nombre y número de teléfono y te llamaremos.',
412-
availabilityText: '*Nuestros guías están disponibles de domingo desde las 17.00 CT a viernes hasta las 17.00 CT. Si solicitas una llamada fuera de este horario, te llamaremos de lunes a viernes de 9.00 a 17.00 en tu hora local. El orden de llamada corresponde con el orden de solicitud.',
413-
callMe: 'Llámame',
414-
growlMessageOnSave: 'Llamada solicitada.',
415-
growlMessageInvalidPhone: 'El teléfono no es valido. Intentalo de nuevo agregando el código de país. P. ej.: +15005550006',
416-
growlMessageEmptyName: 'Por favor ingresa tu nombre completo',
417-
},
418408
};

src/pages/RequestCallPage.js

Lines changed: 14 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as React from 'react';
1+
import {Component} from 'react';
22
import {View, Text, TextInput} from 'react-native';
33
import _ from 'underscore';
44
import {withOnyx} from 'react-native-onyx';
@@ -18,29 +18,31 @@ import CONST from '../CONST';
1818
import Growl from '../libs/Growl';
1919
import {requestConciergeDMCall} from '../libs/actions/Inbox';
2020
import {fetchOrCreateChatReport} from '../libs/actions/Report';
21+
import personalDetailsPropType from './personalDetailsPropType';
2122

2223
const propTypes = {
2324
...withLocalizePropTypes,
2425

2526
/** The personal details of the person who is logged in */
26-
myPersonalDetails: PropTypes.shape({
27-
/** Display name of the current user from their personal details */
28-
displayName: PropTypes.string,
29-
30-
/** Primary login of the current user */
31-
login: PropTypes.string,
32-
}),
27+
myPersonalDetails: personalDetailsPropType.isRequired,
3328

3429
/** Current user session */
3530
session: PropTypes.shape({
3631
email: PropTypes.string.isRequired,
3732
}).isRequired,
38-
};
39-
const defaultProps = {
40-
myPersonalDetails: {},
33+
34+
/** The details about the user that is signed in */
35+
user: PropTypes.shape({
36+
/** Whether or not the user is subscribed to news updates */
37+
loginList: PropTypes.arrayOf(PropTypes.shape({
38+
39+
/** Phone/Email associated with user */
40+
partnerUserID: PropTypes.string,
41+
})),
42+
}).isRequired,
4143
};
4244

43-
class RequestCallPage extends React.Component {
45+
class RequestCallPage extends Component {
4446
constructor(props) {
4547
super(props);
4648

@@ -153,22 +155,15 @@ class RequestCallPage extends React.Component {
153155

154156
RequestCallPage.displayName = 'RequestCallPage';
155157
RequestCallPage.propTypes = propTypes;
156-
RequestCallPage.defaultProps = defaultProps;
157158
export default compose(
158159
withLocalize,
159160
withOnyx({
160161
myPersonalDetails: {
161162
key: ONYXKEYS.MY_PERSONAL_DETAILS,
162163
},
163-
account: {
164-
key: ONYXKEYS.ACCOUNT,
165-
},
166164
session: {
167165
key: ONYXKEYS.SESSION,
168166
},
169-
reports: {
170-
key: ONYXKEYS.COLLECTION.REPORT,
171-
},
172167
user: {
173168
key: ONYXKEYS.USER,
174169
},

0 commit comments

Comments
 (0)