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
12 changes: 0 additions & 12 deletions assets/images/integrationicons/circle-slash.svg

This file was deleted.

This file was deleted.

17 changes: 0 additions & 17 deletions assets/images/integrationicons/oracle-icon-square.svg

This file was deleted.

22 changes: 0 additions & 22 deletions assets/images/integrationicons/sap-icon-square.svg

This file was deleted.

10 changes: 1 addition & 9 deletions src/CONST.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,6 @@ const ONBOARDING_ACCOUNTING_MAPPING = {
netsuite: 'NetSuite',
intacct: 'Sage Intacct',
quickbooksDesktop: 'QuickBooks Desktop',
sap: 'SAP',
oracle: 'Oracle',
microsoftDynamics: 'Microsoft Dynamics',
other: 'Other',
};

const connectionsVideoPaths = {
Expand Down Expand Up @@ -277,7 +273,7 @@ type OnboardingPurpose = ValueOf<typeof onboardingChoices>;

type OnboardingCompanySize = ValueOf<typeof onboardingCompanySize>;

type OnboardingAccounting = keyof typeof CONST.POLICY.CONNECTIONS.NAME_USER_FRIENDLY | null;
type OnboardingAccounting = ValueOf<typeof CONST.POLICY.CONNECTIONS.NAME> | null;

const onboardingInviteTypes = {
IOU: 'iou',
Expand Down Expand Up @@ -3019,10 +3015,6 @@ const CONST = {
financialForce: 'FinancialForce',
billCom: 'Bill.com',
zenefits: 'Zenefits',
sap: 'SAP',
oracle: 'Oracle',
microsoftDynamics: 'Microsoft Dynamics',
other: 'Other',
},
AUTH_HELP_LINKS: {
intacct:
Expand Down
2 changes: 1 addition & 1 deletion src/components/FeatureTrainingModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ function FeatureTrainingModal({
illustrationAspectRatio: illustrationAspectRatioProp,
image,
contentFitImage,
width = variables.featureTrainingModalWidth,
width = variables.onboardingModalWidth,
title = '',
description = '',
secondaryDescription = '',
Expand Down
8 changes: 0 additions & 8 deletions src/components/Icon/Expensicons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,15 +118,11 @@ import ImageCropCircleMask from '@assets/images/image-crop-circle-mask.svg';
import ImageCropSquareMask from '@assets/images/image-crop-square-mask.svg';
import Inbox from '@assets/images/inbox.svg';
import Info from '@assets/images/info.svg';
import CircleSlash from '@assets/images/integrationicons/circle-slash.svg';
import MicrosoftDynamicsSquare from '@assets/images/integrationicons/microsoft-dynamics-icon-square.svg';
import NetSuiteSquare from '@assets/images/integrationicons/netsuite-icon-square.svg';
import OracleSquare from '@assets/images/integrationicons/oracle-icon-square.svg';
import QBDSquare from '@assets/images/integrationicons/qbd-icon-square.svg';
import QBOCircle from '@assets/images/integrationicons/qbo-icon-circle.svg';
import QBOSquare from '@assets/images/integrationicons/qbo-icon-square.svg';
import SageIntacctSquare from '@assets/images/integrationicons/sage-intacct-icon-square.svg';
import SapSquare from '@assets/images/integrationicons/sap-icon-square.svg';
import XeroCircle from '@assets/images/integrationicons/xero-icon-circle.svg';
import XeroSquare from '@assets/images/integrationicons/xero-icon-square.svg';
import InvoiceGeneric from '@assets/images/invoice-generic.svg';
Expand Down Expand Up @@ -281,7 +277,6 @@ export {
CreditCard,
CreditCardHourglass,
CreditCardExclamation,
CircleSlash,
DeletedRoomAvatar,
Document,
DocumentSlash,
Expand Down Expand Up @@ -434,9 +429,6 @@ export {
NetSuiteSquare,
XeroCircle,
QBOCircle,
MicrosoftDynamicsSquare,
OracleSquare,
SapSquare,
Filters,
CalendarSolid,
Filter,
Expand Down
21 changes: 9 additions & 12 deletions src/components/RadioButtonWithLabel.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type {ReactNode} from 'react';
import type {ComponentType} from 'react';
import React from 'react';
import type {StyleProp, ViewStyle} from 'react-native';
import {View} from 'react-native';
Expand All @@ -21,27 +21,24 @@ type RadioButtonWithLabelProps = {
/** Text that appears next to check box */
label?: string;

/** React element to display for the label */
labelElement?: ReactNode;
/** Component to display for label */
LabelComponent?: ComponentType;

/** Should the input be styled for errors */
/** Should the input be styled for errors */
hasError?: boolean;

/** Error text to display */
errorText?: string;

/** Additional styles to apply to the wrapper */
wrapperStyle?: StyleProp<ViewStyle>;
};

const PressableWithFeedback = Pressables.PressableWithFeedback;

function RadioButtonWithLabel({labelElement, style, label = '', hasError = false, errorText = '', isChecked, onPress, wrapperStyle}: RadioButtonWithLabelProps) {
function RadioButtonWithLabel({LabelComponent, style, label = '', hasError = false, errorText = '', isChecked, onPress}: RadioButtonWithLabelProps) {
const styles = useThemeStyles();
const defaultStyles = [styles.flexRow, styles.alignItemsCenter];

if (!label && !labelElement) {
throw new Error('Must provide at least label or labelComponent prop');
if (!label && !LabelComponent) {
throw new Error('Must provide at least label or LabelComponent prop');
}
return (
<>
Expand All @@ -57,13 +54,13 @@ function RadioButtonWithLabel({labelElement, style, label = '', hasError = false
accessible={false}
onPress={onPress}
style={[styles.flexRow, styles.flexWrap, styles.flexShrink1, styles.alignItemsCenter]}
wrapperStyle={[styles.flex1, styles.ml3, styles.pr2, wrapperStyle]}
wrapperStyle={[styles.flex1, styles.ml3, styles.pr2]}
// disable hover style when disabled
hoverDimmingValue={0.8}
pressDimmingValue={0.5}
>
{!!label && <Text style={[styles.ml1]}>{label}</Text>}
{!!labelElement && labelElement}
{!!LabelComponent && <LabelComponent />}
</PressableWithFeedback>
</View>
<FormHelpMessage message={errorText} />
Expand Down
7 changes: 2 additions & 5 deletions src/languages/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2054,7 +2054,7 @@ const translations = {
},
accounting: {
title: 'Do you use any accounting software?',
none: 'None',
noneOfAbove: 'None of the above',
},
error: {
requiredFirstName: 'Please input your first name to continue',
Expand Down Expand Up @@ -4355,9 +4355,6 @@ const translations = {
xero: 'Xero',
netsuite: 'NetSuite',
intacct: 'Sage Intacct',
sap: 'SAP',
oracle: 'Oracle',
microsoftDynamics: 'Microsoft Dynamics',
talkYourOnboardingSpecialist: 'Chat with your setup specialist.',
talkYourAccountManager: 'Chat with your account manager.',
talkToConcierge: 'Chat with Concierge.',
Expand Down Expand Up @@ -4386,7 +4383,7 @@ const translations = {
import: 'Import',
export: 'Export',
advanced: 'Advanced',
other: 'Other',
other: 'Other integrations',
syncNow: 'Sync now',
disconnect: 'Disconnect',
reinstall: 'Reinstall connector',
Expand Down
7 changes: 2 additions & 5 deletions src/languages/es.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2055,7 +2055,7 @@ const translations = {
},
accounting: {
title: '¿Utilizas algún software de contabilidad?',
none: 'Ninguno',
noneOfAbove: 'Ninguno de los anteriores',
},
error: {
requiredFirstName: 'Introduce tu nombre para continuar',
Expand Down Expand Up @@ -4363,9 +4363,6 @@ const translations = {
xero: 'Xero',
netsuite: 'NetSuite',
intacct: 'Sage Intacct',
sap: 'SAP',
oracle: 'Oracle',
microsoftDynamics: 'Microsoft Dynamics',
talkYourOnboardingSpecialist: 'Chatea con tu especialista asignado.',
talkYourAccountManager: 'Chatea con tu gestor de cuenta.',
talkToConcierge: 'Chatear con Concierge.',
Expand Down Expand Up @@ -4394,7 +4391,7 @@ const translations = {
import: 'Importar',
export: 'Exportar',
advanced: 'Avanzado',
other: 'Otro',
other: 'Otras integraciones',
syncNow: 'Sincronizar ahora',
disconnect: 'Desconectar',
reinstall: 'Reinstalar el conector',
Expand Down
4 changes: 2 additions & 2 deletions src/libs/ReportUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9733,7 +9733,7 @@ function prepareOnboardingOnyxData(
return;
}

const integrationName = userReportedIntegration ? CONST.ONBOARDING_ACCOUNTING_MAPPING[userReportedIntegration as keyof typeof CONST.ONBOARDING_ACCOUNTING_MAPPING] : '';
const integrationName = userReportedIntegration ? CONST.ONBOARDING_ACCOUNTING_MAPPING[userReportedIntegration] : '';
const assignedGuideEmail = getPolicy(targetChatPolicyID)?.assignedGuide?.email ?? 'Setup Specialist';
const assignedGuidePersonalDetail = Object.values(allPersonalDetails ?? {}).find((personalDetail) => personalDetail?.login === assignedGuideEmail);
let assignedGuideAccountID: number;
Expand Down Expand Up @@ -10122,7 +10122,7 @@ function prepareOnboardingOnyxData(
key: `${ONYXKEYS.COLLECTION.POLICY}${onboardingPolicyID}`,
value: {
areConnectionsEnabled: true,
...(requiresControlPlan.includes(userReportedIntegration as AllConnectionName)
...(requiresControlPlan.includes(userReportedIntegration)
? {
type: CONST.POLICY.TYPE.CORPORATE,
}
Expand Down
Loading
Loading