Skip to content

Commit 649daaf

Browse files
authored
Merge pull request Expensify#72844 from Expensify/revert-71609-confirmEmpty
[CP Staging] Revert "Implement confirmation modal when user tries to create multiple empty reports"
2 parents 7b11227 + 659fe93 commit 649daaf

19 files changed

Lines changed: 78 additions & 1020 deletions

src/hooks/useCreateEmptyReportConfirmation.tsx

Lines changed: 0 additions & 106 deletions
This file was deleted.

src/languages/de.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6399,11 +6399,6 @@ ${amount} für ${merchant} - ${date}`,
63996399
newReport: {
64006400
createReport: 'Bericht erstellen',
64016401
chooseWorkspace: 'Wählen Sie einen Arbeitsbereich für diesen Bericht aus.',
6402-
emptyReportConfirmationTitle: 'Du hast bereits einen leeren Bericht',
6403-
emptyReportConfirmationPrompt: ({workspaceName}: {workspaceName: string}) =>
6404-
`Möchtest du wirklich einen weiteren Bericht in ${workspaceName} erstellen? Du kannst auf deine leeren Berichte zugreifen unter`,
6405-
emptyReportConfirmationPromptLink: 'Berichte',
6406-
genericWorkspaceName: 'diesem Arbeitsbereich',
64076402
},
64086403
genericCreateReportFailureMessage: 'Unerwarteter Fehler beim Erstellen dieses Chats. Bitte versuchen Sie es später erneut.',
64096404
genericAddCommentFailureMessage: 'Unerwarteter Fehler beim Posten des Kommentars. Bitte versuchen Sie es später noch einmal.',

src/languages/en.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6352,11 +6352,6 @@ const translations = {
63526352
newReport: {
63536353
createReport: 'Create report',
63546354
chooseWorkspace: 'Choose a workspace for this report.',
6355-
emptyReportConfirmationTitle: 'You already have an empty report',
6356-
emptyReportConfirmationPrompt: ({workspaceName}: {workspaceName: string}) =>
6357-
`Are you sure you want to create another report in ${workspaceName}? You can access your empty reports in`,
6358-
emptyReportConfirmationPromptLink: 'Reports',
6359-
genericWorkspaceName: 'this workspace',
63606355
},
63616356
genericCreateReportFailureMessage: 'Unexpected error creating this chat. Please try again later.',
63626357
genericAddCommentFailureMessage: 'Unexpected error posting the comment. Please try again later.',

src/languages/es.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6382,11 +6382,6 @@ ${amount} para ${merchant} - ${date}`,
63826382
newReport: {
63836383
createReport: 'Crear informe',
63846384
chooseWorkspace: 'Elige un espacio de trabajo para este informe.',
6385-
emptyReportConfirmationTitle: 'Ya tienes un informe vacío',
6386-
emptyReportConfirmationPrompt: ({workspaceName}: {workspaceName: string}) =>
6387-
`¿Estás seguro de que quieres crear otro informe en ${workspaceName}? Puedes acceder a tus informes vacíos en`,
6388-
emptyReportConfirmationPromptLink: 'Informes',
6389-
genericWorkspaceName: 'este espacio de trabajo',
63906385
},
63916386
genericCreateReportFailureMessage: 'Error inesperado al crear el chat. Por favor, inténtalo más tarde.',
63926387
genericAddCommentFailureMessage: 'Error inesperado al añadir el comentario. Por favor, inténtalo más tarde.',

src/languages/fr.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6406,11 +6406,6 @@ ${amount} pour ${merchant} - ${date}`,
64066406
newReport: {
64076407
createReport: 'Créer un rapport',
64086408
chooseWorkspace: 'Choisissez un espace de travail pour ce rapport.',
6409-
emptyReportConfirmationTitle: 'Vous avez déjà un rapport vide',
6410-
emptyReportConfirmationPrompt: ({workspaceName}: {workspaceName: string}) =>
6411-
`Êtes-vous sûr de vouloir créer un autre rapport dans ${workspaceName} ? Vous pouvez accéder à vos rapports vides dans`,
6412-
emptyReportConfirmationPromptLink: 'Rapports',
6413-
genericWorkspaceName: 'cet espace de travail',
64146409
},
64156410
genericCreateReportFailureMessage: 'Erreur inattendue lors de la création de ce chat. Veuillez réessayer plus tard.',
64166411
genericAddCommentFailureMessage: 'Erreur inattendue lors de la publication du commentaire. Veuillez réessayer plus tard.',

src/languages/it.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6410,11 +6410,6 @@ ${amount} per ${merchant} - ${date}`,
64106410
newReport: {
64116411
createReport: 'Crea rapporto',
64126412
chooseWorkspace: "Scegli un'area di lavoro per questo report.",
6413-
emptyReportConfirmationTitle: 'Hai già un rapporto vuoto',
6414-
emptyReportConfirmationPrompt: ({workspaceName}: {workspaceName: string}) =>
6415-
`Sei sicuro di voler creare un altro rapporto in ${workspaceName}? Puoi accedere ai tuoi rapporti vuoti in`,
6416-
emptyReportConfirmationPromptLink: 'Rapporti',
6417-
genericWorkspaceName: 'questo spazio di lavoro',
64186413
},
64196414
genericCreateReportFailureMessage: 'Errore imprevisto durante la creazione di questa chat. Si prega di riprovare più tardi.',
64206415
genericAddCommentFailureMessage: 'Errore imprevisto durante la pubblicazione del commento. Per favore riprova più tardi.',

src/languages/ja.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6346,10 +6346,6 @@ ${date} - ${merchant}に${amount}`,
63466346
newReport: {
63476347
createReport: 'レポートを作成',
63486348
chooseWorkspace: 'このレポートのワークスペースを選択してください。',
6349-
emptyReportConfirmationTitle: '空のレポートがすでにあります',
6350-
emptyReportConfirmationPrompt: ({workspaceName}: {workspaceName: string}) => `${workspaceName} で別のレポートを作成しますか? 空のレポートには次からアクセスできます`,
6351-
emptyReportConfirmationPromptLink: 'レポート',
6352-
genericWorkspaceName: 'このワークスペース',
63536349
},
63546350
genericCreateReportFailureMessage: 'このチャットの作成中に予期しないエラーが発生しました。後でもう一度お試しください。',
63556351
genericAddCommentFailureMessage: 'コメントの投稿中に予期しないエラーが発生しました。後でもう一度お試しください。',

src/languages/nl.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6396,11 +6396,6 @@ ${amount} voor ${merchant} - ${date}`,
63966396
newReport: {
63976397
createReport: 'Rapport maken',
63986398
chooseWorkspace: 'Kies een werkruimte voor dit rapport.',
6399-
emptyReportConfirmationTitle: 'Je hebt al een leeg rapport',
6400-
emptyReportConfirmationPrompt: ({workspaceName}: {workspaceName: string}) =>
6401-
`Weet je zeker dat je nog een rapport wilt maken in ${workspaceName}? Je kunt je lege rapporten vinden onder`,
6402-
emptyReportConfirmationPromptLink: 'Rapporten',
6403-
genericWorkspaceName: 'deze werkruimte',
64046399
},
64056400
genericCreateReportFailureMessage: 'Onverwachte fout bij het maken van deze chat. Probeer het later opnieuw.',
64066401
genericAddCommentFailureMessage: 'Onverwachte fout bij het plaatsen van de opmerking. Probeer het later opnieuw.',

src/languages/pl.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6381,11 +6381,6 @@ ${amount} dla ${merchant} - ${date}`,
63816381
newReport: {
63826382
createReport: 'Utwórz raport',
63836383
chooseWorkspace: 'Wybierz przestrzeń roboczą dla tego raportu.',
6384-
emptyReportConfirmationTitle: 'Masz już pusty raport',
6385-
emptyReportConfirmationPrompt: ({workspaceName}: {workspaceName: string}) =>
6386-
`Czy na pewno chcesz utworzyć kolejny raport w ${workspaceName}? Do pustych raportów możesz przejść w`,
6387-
emptyReportConfirmationPromptLink: 'Raporty',
6388-
genericWorkspaceName: 'tej przestrzeni roboczej',
63896384
},
63906385
genericCreateReportFailureMessage: 'Nieoczekiwany błąd podczas tworzenia tego czatu. Proszę spróbować ponownie później.',
63916386
genericAddCommentFailureMessage: 'Nieoczekiwany błąd podczas publikowania komentarza. Spróbuj ponownie później.',

src/languages/pt-BR.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6390,11 +6390,6 @@ ${amount} para ${merchant} - ${date}`,
63906390
newReport: {
63916391
createReport: 'Criar relatório',
63926392
chooseWorkspace: 'Escolha um espaço de trabalho para este relatório.',
6393-
emptyReportConfirmationTitle: 'Você já tem um relatório vazio',
6394-
emptyReportConfirmationPrompt: ({workspaceName}: {workspaceName: string}) =>
6395-
`Tem certeza de que deseja criar outro relatório em ${workspaceName}? Você pode acessar seus relatórios vazios em`,
6396-
emptyReportConfirmationPromptLink: 'Relatórios',
6397-
genericWorkspaceName: 'este espaço de trabalho',
63986393
},
63996394
genericCreateReportFailureMessage: 'Erro inesperado ao criar este chat. Por favor, tente novamente mais tarde.',
64006395
genericAddCommentFailureMessage: 'Erro inesperado ao postar o comentário. Por favor, tente novamente mais tarde.',

0 commit comments

Comments
 (0)