Skip to content

Commit

Permalink
fix prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
cdOut committed Mar 7, 2024
1 parent 9db5377 commit 925c2bd
Show file tree
Hide file tree
Showing 5 changed files with 58 additions and 36 deletions.
42 changes: 21 additions & 21 deletions src/CONST.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3313,10 +3313,10 @@ const CONST = {

ONBOARDING_CONCIERGE: {
[onboardingChoices.TRACK]:
'# Welcome to Expensify, let\'s start tracking your expenses!\n' +
'Hi there, I\'m Concierge. Chat with me here for anything you need.\n' +
"# Welcome to Expensify, let's start tracking your expenses!\n" +
"Hi there, I'm Concierge. Chat with me here for anything you need.\n" +
'\n' +
'To track your expenses, create a workspace to keep everything in one place. Here\'s how:\n' +
"To track your expenses, create a workspace to keep everything in one place. Here's how:\n" +
'1. From the home screen, click the green + button > New Workspace\n' +
'2. Give your workspace a name (e.g. "My business expenses”).\n' +
'\n' +
Expand All @@ -3325,30 +3325,30 @@ const CONST = {
'2. Click the gray + button next to the message field.\n' +
'3. Click Request money, then add your expense type.\n' +
'\n' +
'We\'ll store all expenses in your new workspace for easy access. Let me know if you have any questions!',
[onboardingChoices.EMPLOYER]:
"We'll store all expenses in your new workspace for easy access. Let me know if you have any questions!",
[onboardingChoices.EMPLOYER]:
'# Welcome to Expensify, the fastest way to get paid back!\n' +
'Hi there, I\'m Concierge. Chat with me here for anything you need.\n' +
"Hi there, I'm Concierge. Chat with me here for anything you need.\n" +
'\n' +
'To submit expenses for reimbursement:\n' +
'1. From the home screen, click the green + button > Request money.\n' +
'2. Enter an amount or scan a receipt, then input your boss\'s email.\n' +
"2. Enter an amount or scan a receipt, then input your boss's email.\n" +
'\n' +
'That\'ll send a request to get you paid back. Let me know if you have any questions!',
[onboardingChoices.MANAGE_TEAM]:
'# Welcome to Expensify, let\'s start managing your team\'s expenses!\n' +
'Hi there, I\'m Concierge. Chat with me here for anything you need.\n' +
"That'll send a request to get you paid back. Let me know if you have any questions!",
[onboardingChoices.MANAGE_TEAM]:
"# Welcome to Expensify, let's start managing your team's expenses!\n" +
"Hi there, I'm Concierge. Chat with me here for anything you need.\n" +
'\n' +
'To manage your team\'s expenses, create a workspace to keep everything in one place. Here\'s how:\n' +
"To manage your team's expenses, create a workspace to keep everything in one place. Here's how:\n" +
'1. From the home screen, click the green + button > New Workspace\n' +
'2. Give your workspace a name (e.g. “Sales team expenses”).\n' +
'\n' +
'Then, invite your team to your workspace via the Members pane and connect a business bank account to reimburse them. Let me know if you have any questions!',
[onboardingChoices.PERSONAL_SPEND]:
'# Welcome to Expensify, let\'s start tracking your expenses!\n' +
'Hi there, I\'m Concierge. Chat with me here for anything you need.\n' +
[onboardingChoices.PERSONAL_SPEND]:
"# Welcome to Expensify, let's start tracking your expenses!\n" +
"Hi there, I'm Concierge. Chat with me here for anything you need.\n" +
'\n' +
'To track your expenses, create a workspace to keep everything in one place. Here\'s how:\n' +
"To track your expenses, create a workspace to keep everything in one place. Here's how:\n" +
'1. From the home screen, click the green + button > New Workspace\n' +
'2. Give your workspace a name (e.g. "My expenses”).\n' +
'\n' +
Expand All @@ -3357,21 +3357,21 @@ const CONST = {
'2. Click the gray + button next to the message field.\n' +
'3. Click Request money, then add your expense type.\n' +
'\n' +
'We\'ll store all expenses in your new workspace for easy access. Let me know if you have any questions!',
"We'll store all expenses in your new workspace for easy access. Let me know if you have any questions!",
[onboardingChoices.CHAT_SPLIT]:
'# Welcome to Expensify, where splitting the bill is an easy conversation!\n' +
'Hi there, I\'m Concierge. Chat with me here for anything you need.\n' +
"Hi there, I'm Concierge. Chat with me here for anything you need.\n" +
'\n' +
'To split an expense:\n' +
'1. From the home screen, click the green + button > Request money.\n' +
'2. Enter an amount or scan a receipt, then choose who you want to split it with.\n' +
'\n' +
'We\'ll send a request to each person so they can pay you back. Let me know if you have any questions!',
"We'll send a request to each person so they can pay you back. Let me know if you have any questions!",
[onboardingChoices.LOOKING_AROUND]:
'# Welcome to Expensify!\n' +
'Hi there, I\'m Concierge. Chat with me here for anything you need.\n' +
"Hi there, I'm Concierge. Chat with me here for anything you need.\n" +
'\n' +
'Expensify is best known for expense and corporate card management, but we do a lot more than that. Let me know what you\'re interested in and I\'ll help get you started.',
"Expensify is best known for expense and corporate card management, but we do a lot more than that. Let me know what you're interested in and I'll help get you started.",
},

REPORT_FIELD_TITLE_FIELD_ID: 'text_title',
Expand Down
24 changes: 23 additions & 1 deletion src/components/Form/FormWrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,29 @@ function FormWrapper({
)}
</FormElement>
),
[children, enabledWhenOffline, errorMessage, errors, footerContent, formID, formState?.errorFields, formState?.isLoading, isSubmitActionDangerous, isSubmitButtonVisible, onSubmit, style, styles.flex1, styles.mh0, styles.mt5, submitButtonStyles, submitFlexEnabled, submitButtonText, shouldHideFixErrorsAlert, onFixTheErrorsLinkPressed, disablePressOnEnter],
[
children,
enabledWhenOffline,
errorMessage,
errors,
footerContent,
formID,
formState?.errorFields,
formState?.isLoading,
isSubmitActionDangerous,
isSubmitButtonVisible,
onSubmit,
style,
styles.flex1,
styles.mh0,
styles.mt5,
submitButtonStyles,
submitFlexEnabled,
submitButtonText,
shouldHideFixErrorsAlert,
onFixTheErrorsLinkPressed,
disablePressOnEnter,
],
);

return (
Expand Down
12 changes: 6 additions & 6 deletions src/languages/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1261,13 +1261,13 @@ export default {
},
whatsYourName: "What's your name?",
purpose: {
title: "What do you want to do today?",
[CONST.ONBOARDING_CHOICES.TRACK]: "Track business spend for taxes",
[CONST.ONBOARDING_CHOICES.EMPLOYER]: "Get paid back by my employer",
title: 'What do you want to do today?',
[CONST.ONBOARDING_CHOICES.TRACK]: 'Track business spend for taxes',
[CONST.ONBOARDING_CHOICES.EMPLOYER]: 'Get paid back by my employer',
[CONST.ONBOARDING_CHOICES.MANAGE_TEAM]: "Manage my team's expenses",
[CONST.ONBOARDING_CHOICES.PERSONAL_SPEND]: "Track and budget personal spend",
[CONST.ONBOARDING_CHOICES.CHAT_SPLIT]: "Chat and split bills with friends",
[CONST.ONBOARDING_CHOICES.LOOKING_AROUND]: "I'm just looking around"
[CONST.ONBOARDING_CHOICES.PERSONAL_SPEND]: 'Track and budget personal spend',
[CONST.ONBOARDING_CHOICES.CHAT_SPLIT]: 'Chat and split bills with friends',
[CONST.ONBOARDING_CHOICES.LOOKING_AROUND]: "I'm just looking around",
},
error: {
requiredFirstName: 'Please input your first name to continue',
Expand Down
14 changes: 7 additions & 7 deletions src/languages/es.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1260,13 +1260,13 @@ export default {
},
whatsYourName: '¿Cómo te llamas?',
purpose: {
title: "¿Qué quieres hacer hoy?",
[CONST.ONBOARDING_CHOICES.TRACK]: "Seguimiento del gasto empresarial en materia de impuestos",
[CONST.ONBOARDING_CHOICES.EMPLOYER]: "Que mi empleador me pague",
[CONST.ONBOARDING_CHOICES.MANAGE_TEAM]: "Gestionar los gastos de mi equipo",
[CONST.ONBOARDING_CHOICES.PERSONAL_SPEND]: "Seguimiento y presupuesto del gasto personal",
[CONST.ONBOARDING_CHOICES.CHAT_SPLIT]: "Chatea y divide facturas con amigos",
[CONST.ONBOARDING_CHOICES.LOOKING_AROUND]: "Estoy viendo solamente"
title: '¿Qué quieres hacer hoy?',
[CONST.ONBOARDING_CHOICES.TRACK]: 'Seguimiento del gasto empresarial en materia de impuestos',
[CONST.ONBOARDING_CHOICES.EMPLOYER]: 'Que mi empleador me pague',
[CONST.ONBOARDING_CHOICES.MANAGE_TEAM]: 'Gestionar los gastos de mi equipo',
[CONST.ONBOARDING_CHOICES.PERSONAL_SPEND]: 'Seguimiento y presupuesto del gasto personal',
[CONST.ONBOARDING_CHOICES.CHAT_SPLIT]: 'Chatea y divide facturas con amigos',
[CONST.ONBOARDING_CHOICES.LOOKING_AROUND]: 'Estoy viendo solamente',
},
error: {
requiredFirstName: 'Por favor, ingresa tu primer nombre para continuar',
Expand Down
2 changes: 1 addition & 1 deletion src/pages/OnboardingPurpose.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ function OnboardingPurpose() {
);

const completeEngagement = useCallback(() => {
if(selectedPurpose === undefined) {
if (selectedPurpose === undefined) {
return;
}

Expand Down

0 comments on commit 925c2bd

Please sign in to comment.