Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/CONST/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3364,6 +3364,7 @@ const CONST = {
CARD_NAME: 'CardName',
TRANSACTION_START_DATE: 'TransactionStartDate',
CONFIRMATION: 'Confirmation',
INVITE_NEW_MEMBER: 'InviteNewMember',
},
TRANSACTION_START_DATE_OPTIONS: {
FROM_BEGINNING: 'fromBeginning',
Expand Down Expand Up @@ -3409,6 +3410,7 @@ const CONST = {
LIMIT: 'Limit',
CARD_NAME: 'CardName',
CONFIRMATION: 'Confirmation',
INVITE_NEW_MEMBER: 'InviteNewMember',
},
CARD_TYPE: {
PHYSICAL: 'physical',
Expand Down
7 changes: 7 additions & 0 deletions src/components/InteractiveStepWrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,11 @@ type InteractiveStepWrapperProps = {
*/
enableEdgeToEdgeBottomSafeAreaPadding?: boolean;

/**
* Callback to be called when the screen entry transition ends.
*/
onEntryTransitionEnd?: () => void;

// Reference to the outer element
ref?: ForwardedRef<View>;
};
Expand All @@ -77,6 +82,7 @@ function InteractiveStepWrapper({
offlineIndicatorStyle,
shouldKeyboardOffsetBottomSafeAreaPadding,
enableEdgeToEdgeBottomSafeAreaPadding,
onEntryTransitionEnd,
ref,
}: InteractiveStepWrapperProps) {
const styles = useThemeStyles();
Expand All @@ -93,6 +99,7 @@ function InteractiveStepWrapper({
shouldShowOfflineIndicatorInWideScreen={shouldShowOfflineIndicatorInWideScreen}
offlineIndicatorStyle={offlineIndicatorStyle}
shouldKeyboardOffsetBottomSafeAreaPadding={shouldKeyboardOffsetBottomSafeAreaPadding}
onEntryTransitionEnd={onEntryTransitionEnd}
>
<HeaderWithBackButton
title={headerTitle}
Expand Down
1 change: 1 addition & 0 deletions src/languages/de.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5233,6 +5233,7 @@ ${
issueCard: 'Karte ausstellen',
issueNewCard: {
whoNeedsCard: 'Wer braucht eine Karte?',
inviteNewMember: 'Neues Mitglied einladen',
findMember: 'Mitglied finden',
chooseCardType: 'Wählen Sie einen Kartentyp aus',
physicalCard: 'Physische Karte',
Expand Down
1 change: 1 addition & 0 deletions src/languages/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5299,6 +5299,7 @@ const translations = {
issueCard: 'Issue card',
issueNewCard: {
whoNeedsCard: 'Who needs a card?',
inviteNewMember: 'Invite new member',
findMember: 'Find member',
chooseCardType: 'Choose a card type',
physicalCard: 'Physical card',
Expand Down
1 change: 1 addition & 0 deletions src/languages/es.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5211,6 +5211,7 @@ ${amount} para ${merchant} - ${date}`,
getStartedIssuing: 'Empieza emitiendo tu primera tarjeta virtual o física.',
issueNewCard: {
whoNeedsCard: '¿Quién necesita una tarjeta?',
inviteNewMember: 'Invitar nuevo miembro',
findMember: 'Buscar miembro',
chooseCardType: 'Elegir un tipo de tarjeta',
physicalCard: 'Tarjeta física',
Expand Down
1 change: 1 addition & 0 deletions src/languages/fr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5244,6 +5244,7 @@ ${
issueCard: 'Émettre une carte',
issueNewCard: {
whoNeedsCard: "Qui a besoin d'une carte ?",
inviteNewMember: 'Inviter un nouveau membre',
findMember: 'Trouver un membre',
chooseCardType: 'Choisissez un type de carte',
physicalCard: 'Carte physique',
Expand Down
1 change: 1 addition & 0 deletions src/languages/it.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5219,6 +5219,7 @@ ${
issueCard: 'Emetti carta',
issueNewCard: {
whoNeedsCard: 'Chi ha bisogno di una carta?',
inviteNewMember: 'Invita nuovo membro',
findMember: 'Trova membro',
chooseCardType: 'Scegli un tipo di carta',
physicalCard: 'Carta fisica',
Expand Down
1 change: 1 addition & 0 deletions src/languages/ja.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5177,6 +5177,7 @@ ${
issueCard: 'カードを発行',
issueNewCard: {
whoNeedsCard: '誰がカードを必要としていますか?',
inviteNewMember: '新しいメンバーを招待',
findMember: 'メンバーを探す',
chooseCardType: 'カードタイプを選択',
physicalCard: '物理カード',
Expand Down
1 change: 1 addition & 0 deletions src/languages/nl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5212,6 +5212,7 @@ ${
issueCard: 'Kaart uitgeven',
issueNewCard: {
whoNeedsCard: 'Wie heeft een kaart nodig?',
inviteNewMember: 'Nieuw lid uitnodigen',
findMember: 'Lid zoeken',
chooseCardType: 'Kies een kaarttype',
physicalCard: 'Fysieke kaart',
Expand Down
1 change: 1 addition & 0 deletions src/languages/pl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5202,6 +5202,7 @@ ${
issueCard: 'Wydaj kartę',
issueNewCard: {
whoNeedsCard: 'Kto potrzebuje karty?',
inviteNewMember: 'Zaproś nowego członka',
findMember: 'Znajdź członka',
chooseCardType: 'Wybierz typ karty',
physicalCard: 'Fizyczna karta',
Expand Down
1 change: 1 addition & 0 deletions src/languages/pt-BR.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5205,6 +5205,7 @@ ${
issueCard: 'Emitir cartão',
issueNewCard: {
whoNeedsCard: 'Quem precisa de um cartão?',
inviteNewMember: 'Convide um novo membro',
findMember: 'Encontrar membro',
chooseCardType: 'Escolha um tipo de cartão',
physicalCard: 'Cartão físico',
Expand Down
1 change: 1 addition & 0 deletions src/languages/zh-hans.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5107,6 +5107,7 @@ ${
issueCard: '发卡',
issueNewCard: {
whoNeedsCard: '谁需要一张卡?',
inviteNewMember: '邀请新成员',
findMember: '查找成员',
chooseCardType: '选择卡类型',
physicalCard: '实体卡',
Expand Down
7 changes: 7 additions & 0 deletions src/libs/actions/Card.ts
Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,12 @@ function setIssueNewCardStepAndData({data, isEditing, step, policyID, isChangeAs
});
}

function setDraftInviteAccountID(assigneeEmail: string | undefined, assigneeAccountID: number | undefined, policyID: string) {
Onyx.set(`${ONYXKEYS.COLLECTION.WORKSPACE_INVITE_MEMBERS_DRAFT}${policyID}`, {
[assigneeEmail ?? '']: assigneeAccountID,
});
}

function clearIssueNewCardFlow(policyID: string | undefined) {
Onyx.set(`${ONYXKEYS.COLLECTION.ISSUE_NEW_EXPENSIFY_CARD}${policyID}`, {
currentStep: null,
Expand Down Expand Up @@ -1072,6 +1078,7 @@ export {
getCardDefaultName,
queueExpensifyCardForBilling,
clearIssueNewCardFormData,
setDraftInviteAccountID,
resolveFraudAlert,
};
export type {ReplacementReason};
Loading
Loading