Skip to content

Commit 504bb08

Browse files
authored
Merge pull request #4992 from parasharrajat/feedback
Add feedback to IOU on Max participants selection
2 parents 843e215 + c709d45 commit 504bb08

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

src/languages/en.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ export default {
183183
send: ({amount}) => `Send ${amount}`,
184184
choosePaymentMethod: 'Choose payment method:',
185185
noReimbursableExpenses: 'This report has an invalid amount',
186+
maxParticipantsReached: ({count}) => `You've selected the maximum number (${count}) of participants.`,
186187
error: {
187188
invalidAmount: 'Invalid amount',
188189
invalidSplit: 'Split amounts do not equal total amount',

src/languages/es.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ export default {
183183
send: ({amount}) => `Enviar ${amount}`,
184184
choosePaymentMethod: 'Elige el método de pago:',
185185
noReimbursableExpenses: 'El monto de este informe es inválido',
186+
maxParticipantsReached: ({count}) => `Has seleccionado el número máximo (${count}) de participantes.`,
186187
error: {
187188
invalidAmount: 'Monto no válido',
188189
invalidSplit: 'La suma de las partes no equivale al monto total',

src/pages/iou/steps/IOUParticipantsPage/IOUParticipantsSplit.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,11 @@ class IOUParticipantsSplit extends Component {
249249
</View>
250250
{this.props.participants?.length > 0 && (
251251
<FixedFooter>
252+
{maxParticipantsReached && (
253+
<Text style={[styles.textLabelSupporting, styles.textAlignCenter, styles.mt1, styles.mb3]}>
254+
{this.props.translate('iou.maxParticipantsReached', {count: CONST.REPORT.MAXIMUM_PARTICIPANTS})}
255+
</Text>
256+
)}
252257
<Button
253258
success
254259
style={[styles.w100]}

0 commit comments

Comments
 (0)