Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add employee and accounting page to onboarding flow #49161

Merged
merged 61 commits into from
Oct 10, 2024
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
accc8a1
feat: add employee and accounting page to onboarding flow
nkdengineer Sep 13, 2024
419f7cc
fix ts error
nkdengineer Sep 13, 2024
88dda39
Merge branch 'main' into fix/48745
nkdengineer Sep 16, 2024
6bdf7ed
add OnboadingListItem
nkdengineer Sep 16, 2024
e0bc748
fix test
nkdengineer Sep 16, 2024
de74800
add offline indicator and fix ts bug
nkdengineer Sep 16, 2024
5f75726
Merge branch 'main' into fix/48745
nkdengineer Sep 17, 2024
a37009d
fix the font-size issue
nkdengineer Sep 17, 2024
d72dec2
decrease spacing between title and description
nkdengineer Sep 17, 2024
2200305
Merge branch 'main' into fix/48745
nkdengineer Sep 18, 2024
646fc6d
Update src/pages/OnboardingEmployees/index.tsx
nkdengineer Sep 18, 2024
b7b016f
Update src/pages/OnboardingAccounting/index.tsx
nkdengineer Sep 18, 2024
6964f34
call completeOnboarding API
nkdengineer Sep 18, 2024
def4389
fix ts error
nkdengineer Sep 18, 2024
b923dab
Merge branch 'main' into fix/48745
nkdengineer Sep 18, 2024
b1e8c24
move the type to CONST
nkdengineer Sep 18, 2024
f8ff1f5
remove OnboardingListItem
nkdengineer Sep 18, 2024
a773766
remove onboardingIcon type
nkdengineer Sep 18, 2024
a50ce47
remove unused style
nkdengineer Sep 18, 2024
c9b6a0b
fix lint
nkdengineer Sep 18, 2024
0d6adac
merge main
nkdengineer Sep 19, 2024
13f4da9
add type and refactor style
nkdengineer Sep 19, 2024
944b3d3
Merge branch 'main' into fix/48745
nkdengineer Sep 20, 2024
1a67914
change firstname and lastname as optional
nkdengineer Sep 20, 2024
497a35e
migrate to useOnyx
nkdengineer Sep 20, 2024
ced0874
remove withOnyx
nkdengineer Sep 20, 2024
41de3e1
Merge branch 'main' into fix/48745
nkdengineer Sep 20, 2024
d417b6a
remove unnecessary code
nkdengineer Sep 20, 2024
c6c8cbc
Update src/SCREENS.ts
nkdengineer Sep 20, 2024
11f3a4a
Merge branch 'main' into fix/48745
nkdengineer Sep 23, 2024
465ffbc
Update src/CONST.ts
nkdengineer Sep 23, 2024
d3121d6
Update src/pages/OnboardingAccounting/BaseOnboardingAccounting.tsx
nkdengineer Sep 23, 2024
f72f134
refactor code
nkdengineer Sep 23, 2024
076d4af
Merge branch 'fix/48745' of https://github.com/nkdengineer/App into f…
nkdengineer Sep 23, 2024
ccfa4e1
fix type error
nkdengineer Sep 23, 2024
a1201d2
remove unnecessary prop
nkdengineer Sep 23, 2024
91bbbaf
Merge branch 'main' into fix/48745
nkdengineer Sep 24, 2024
63a5932
remove unused style
nkdengineer Sep 24, 2024
34f74ad
fix lint
nkdengineer Sep 24, 2024
fb70a3f
add style prop for list item
nkdengineer Sep 24, 2024
bdf3a08
Merge branch 'main' into fix/48745
nkdengineer Sep 25, 2024
d0be895
remove unnecessary prop
nkdengineer Sep 25, 2024
5e61daf
add pl8 and pr8 style
nkdengineer Sep 25, 2024
d8b71b0
Merge branch 'main' into fix/48745
nkdengineer Sep 27, 2024
0057cb1
resolve conflict
nkdengineer Oct 2, 2024
939c169
merge main
nkdengineer Oct 2, 2024
97e41e8
fix ts error
nkdengineer Oct 2, 2024
556b83f
merge main
nkdengineer Oct 8, 2024
fe9d9b5
remove description translation
nkdengineer Oct 8, 2024
9a1c414
Merge branch 'main' into fix/48745
nkdengineer Oct 8, 2024
8706f60
update translation
nkdengineer Oct 8, 2024
74631ed
Merge branch 'main' into fix/48745
nkdengineer Oct 8, 2024
4516b4d
update confirm button to continue button
nkdengineer Oct 8, 2024
aab3ad8
fix ts error
nkdengineer Oct 8, 2024
9985e88
remove unused variable
nkdengineer Oct 8, 2024
7bba26c
Merge branch 'main' into fix/48745
nkdengineer Oct 9, 2024
7fb12f0
remove onboaring work
nkdengineer Oct 9, 2024
433261c
merge main
nkdengineer Oct 9, 2024
f806fde
remove import type
nkdengineer Oct 9, 2024
3584504
merge main
nkdengineer Oct 10, 2024
bd6b524
merge main
nkdengineer Oct 10, 2024
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
25 changes: 24 additions & 1 deletion src/CONST.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,12 +130,22 @@ const onboardingEmployerOrSubmitMessage: OnboardingMessageType = {

type OnboardingPurposeType = ValueOf<typeof onboardingChoices>;

type OnboardingCompanySizeType = ValueOf<typeof onboardingCompanySize>;

const onboardingInviteTypes = {
IOU: 'iou',
INVOICE: 'invoice',
CHAT: 'chat',
} as const;

const onboardingCompanySize = {
MICRO: 'micro',
SMALL: 'small',
MEDIUM_SMALL: 'mediumSmall',
MEDIUM: 'medium',
LARGE: 'large',
};
nkdengineer marked this conversation as resolved.
Show resolved Hide resolved

type OnboardingInviteType = ValueOf<typeof onboardingInviteTypes>;

type OnboardingTaskType = {
Expand Down Expand Up @@ -4509,6 +4519,7 @@ const CONST = {
ONBOARDING_CHOICES: {...onboardingChoices},
SELECTABLE_ONBOARDING_CHOICES: {...selectableOnboardingChoices},
ONBOARDING_INVITE_TYPES: {...onboardingInviteTypes},
ONBOARDING_COMPANY_SIZE: {...onboardingCompanySize},
ACTIONABLE_TRACK_EXPENSE_WHISPER_MESSAGE: 'What would you like to do with this expense?',
ONBOARDING_CONCIERGE: {
[onboardingChoices.EMPLOYER]:
Expand Down Expand Up @@ -5809,6 +5820,18 @@ type FeedbackSurveyOptionID = ValueOf<Pick<ValueOf<typeof CONST.FEEDBACK_SURVEY_
type SubscriptionType = ValueOf<typeof CONST.SUBSCRIPTION.TYPE>;
type CancellationType = ValueOf<typeof CONST.CANCELLATION_TYPE>;

export type {Country, IOUAction, IOUType, RateAndUnit, OnboardingPurposeType, IOURequestType, SubscriptionType, FeedbackSurveyOptionID, CancellationType, OnboardingInviteType};
export type {
Country,
IOUAction,
IOUType,
RateAndUnit,
OnboardingPurposeType,
OnboardingCompanySizeType,
IOURequestType,
SubscriptionType,
FeedbackSurveyOptionID,
CancellationType,
OnboardingInviteType,
};

export default CONST;
6 changes: 5 additions & 1 deletion src/ONYXKEYS.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type {ValueOf} from 'type-fest';
import type CONST from './CONST';
import type {OnboardingPurposeType} from './CONST';
import type {OnboardingCompanySizeType, OnboardingPurposeType} from './CONST';
import type * as FormTypes from './types/form';
import type * as OnyxTypes from './types/onyx';
import type Onboarding from './types/onyx/Onboarding';
Expand Down Expand Up @@ -343,6 +343,9 @@ const ONYXKEYS = {
/** Onboarding policyID selected by the user during Onboarding flow */
ONBOARDING_POLICY_ID: 'onboardingPolicyID',

/** Onboarding company size selected by the user during Onboarding flow */
ONBOARDING_COMPANY_SIZE: 'onboardingCompanySize',

/** Onboarding Purpose selected by the user during Onboarding flow */
ONBOARDING_ADMINS_CHAT_REPORT_ID: 'onboardingAdminsChatReportID',

Expand Down Expand Up @@ -947,6 +950,7 @@ type OnyxValuesMapping = {
[ONYXKEYS.MAX_CANVAS_HEIGHT]: number;
[ONYXKEYS.MAX_CANVAS_WIDTH]: number;
[ONYXKEYS.ONBOARDING_PURPOSE_SELECTED]: OnboardingPurposeType;
[ONYXKEYS.ONBOARDING_COMPANY_SIZE]: OnboardingCompanySizeType;
[ONYXKEYS.ONBOARDING_ERROR_MESSAGE]: string;
[ONYXKEYS.ONBOARDING_POLICY_ID]: string;
[ONYXKEYS.ONBOARDING_ADMINS_CHAT_REPORT_ID]: string;
Expand Down
8 changes: 8 additions & 0 deletions src/ROUTES.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1118,6 +1118,14 @@ const ROUTES = {
route: 'onboarding/work',
getRoute: (backTo?: string) => getUrlWithBackToParam(`onboarding/work`, backTo),
},
ONBOARDING_EMPLOYEES: {
route: 'onboarding/employees',
getRoute: (backTo?: string) => getUrlWithBackToParam(`onboarding/employees`, backTo),
},
ONBOARDING_ACCOUNTING: {
route: 'onboarding/accounting',
getRoute: (backTo?: string) => getUrlWithBackToParam(`onboarding/accounting`, backTo),
},
ONBOARDING_PURPOSE: {
route: 'onboarding/purpose',
getRoute: (backTo?: string) => getUrlWithBackToParam(`onboarding/purpose`, backTo),
Expand Down
2 changes: 2 additions & 0 deletions src/SCREENS.ts
Original file line number Diff line number Diff line change
Expand Up @@ -507,6 +507,8 @@ const SCREENS = {
PERSONAL_DETAILS: 'Onboarding_Personal_Details',
PURPOSE: 'Onboarding_Purpose',
WORK: 'Onboarding_Work',
EMPLOYEES: 'Onboarding_Employees',
ACCOUNTING: 'Onboarding_accounting',
nkdengineer marked this conversation as resolved.
Show resolved Hide resolved
},

WELCOME_VIDEO: {
Expand Down
105 changes: 105 additions & 0 deletions src/components/SelectionList/OnboardingListItem.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
import {Str} from 'expensify-common';
import React from 'react';
import {View} from 'react-native';
import Icon from '@components/Icon';
import Text from '@components/Text';
import TextWithTooltip from '@components/TextWithTooltip';
import useLocalize from '@hooks/useLocalize';
import useResponsiveLayout from '@hooks/useResponsiveLayout';
import useThemeStyles from '@hooks/useThemeStyles';
import BaseListItem from './BaseListItem';
import type {ListItem, OnboardingListItemProps} from './types';

function OnboardingListItem<TItem extends ListItem>({
nkdengineer marked this conversation as resolved.
Show resolved Hide resolved
item,
isFocused,
showTooltip,
isDisabled,
canSelectMultiple,
onSelectRow,
onDismissError,
shouldPreventEnterKeySubmit,
rightHandSideComponent,
onFocus,
shouldSyncFocus,
pressableStyle,
}: OnboardingListItemProps<TItem>) {
const styles = useThemeStyles();
const {translate} = useLocalize();
const {onboardingIsMediumOrLargerScreenWidth} = useResponsiveLayout();

return (
<BaseListItem
item={item}
wrapperStyle={[
styles.flex1,
styles.justifyContentBetween,
styles.onboardingItemWrapper,
styles.userSelectNone,
styles.peopleRow,
isFocused && styles.sidebarLinkActive,
onboardingIsMediumOrLargerScreenWidth ? styles.ph8 : styles.ph5,
]}
isFocused={isFocused}
isDisabled={isDisabled}
showTooltip={showTooltip}
canSelectMultiple={canSelectMultiple}
onSelectRow={onSelectRow}
onDismissError={onDismissError}
shouldPreventEnterKeySubmit={shouldPreventEnterKeySubmit}
rightHandSideComponent={rightHandSideComponent}
errors={item.errors}
pendingAction={item.pendingAction}
pressableStyle={pressableStyle}
FooterComponent={
item.invitedSecondaryLogin ? (
<Text style={[styles.ml9, styles.ph5, styles.pb3, styles.textLabelSupporting]}>
{translate('workspace.people.invitedBySecondaryLogin', {secondaryLogin: item.invitedSecondaryLogin})}
</Text>
) : undefined
}
keyForList={item.keyForList}
onFocus={onFocus}
shouldSyncFocus={shouldSyncFocus}
>
<>
{item.onboardingIcon && (
<View style={[styles.mr3, styles.onboardingIconWrapper]}>
<Icon
src={item.onboardingIcon.icon}
width={item.onboardingIcon.iconWidth}
height={item.onboardingIcon.iconHeight}
additionalStyles={item.onboardingIcon.iconStyles}
fill={item.onboardingIcon.iconFill}
/>
</View>
)}
<View style={[styles.flex1, styles.flexColumn, styles.justifyContentCenter, styles.alignItemsStretch, styles.optionRow]}>
<TextWithTooltip
shouldShowTooltip={showTooltip}
text={Str.removeSMSDomain(item.text ?? '')}
style={[
styles.optionDisplayName,
isFocused ? styles.sidebarLinkActiveText : styles.sidebarLinkText,
item.isBold !== false && styles.sidebarLinkTextBold,
styles.pre,
item.alternateText ? styles.mb1 : null,
]}
/>
{!!item.alternateText && (
<TextWithTooltip
shouldShowTooltip={showTooltip}
text={Str.removeSMSDomain(item.alternateText ?? '')}
style={[styles.textLabelSupporting, styles.lh16, styles.pre]}
/>
)}
</View>
{!!item.rightElement && item.rightElement}
</>
</BaseListItem>
);
}

OnboardingListItem.displayName = 'OnboardingListItem';

export default OnboardingListItem;
8 changes: 7 additions & 1 deletion src/components/SelectionList/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,15 @@ import type {BrickRoad} from '@libs/WorkspacesSettingsUtils';
// eslint-disable-next-line no-restricted-imports
import type CursorStyles from '@styles/utils/cursor/types';
import type CONST from '@src/CONST';
import type {OnboardingIcon} from '@src/types/onyx/Onboarding';
import type {Errors, Icon, PendingAction} from '@src/types/onyx/OnyxCommon';
import type {SearchPersonalDetails, SearchReport, SearchReportAction, SearchTransaction} from '@src/types/onyx/SearchResults';
import type {ReceiptErrors} from '@src/types/onyx/Transaction';
import type ChildrenProps from '@src/types/utils/ChildrenProps';
import type IconAsset from '@src/types/utils/IconAsset';
import type ChatListItem from './ChatListItem';
import type InviteMemberListItem from './InviteMemberListItem';
import type OnboardingListItem from './OnboardingListItem';
import type RadioListItem from './RadioListItem';
import type ReportListItem from './Search/ReportListItem';
import type TransactionListItem from './Search/TransactionListItem';
Expand Down Expand Up @@ -286,6 +288,8 @@ type UserListItemProps<TItem extends ListItem> = ListItemProps<TItem> & {
FooterComponent?: ReactElement;
};

type OnboardingListItemProps<TItem extends ListItem> = ListItemProps<TItem & {onboardingIcon?: OnboardingIcon}>;

type InviteMemberListItemProps<TItem extends ListItem> = UserListItemProps<TItem>;

type RadioListItemProps<TItem extends ListItem> = ListItemProps<TItem>;
Expand All @@ -305,7 +309,8 @@ type ValidListItem =
| typeof InviteMemberListItem
| typeof TransactionListItem
| typeof ReportListItem
| typeof ChatListItem;
| typeof ChatListItem
| typeof OnboardingListItem;

type Section<TItem extends ListItem> = {
/** Title of the section */
Expand Down Expand Up @@ -592,4 +597,5 @@ export type {
ValidListItem,
ReportActionListItemType,
ChatListItemProps,
OnboardingListItemProps,
};
13 changes: 13 additions & 0 deletions src/languages/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1629,6 +1629,19 @@ export default {
[CONST.ONBOARDING_CHOICES.CHAT_SPLIT]: 'Chat and split expenses with friends',
[CONST.ONBOARDING_CHOICES.LOOKING_AROUND]: 'Something else',
},
employees: {
title: 'How many employees do you have?',
[CONST.ONBOARDING_COMPANY_SIZE.MICRO]: '1-10 employees',
[CONST.ONBOARDING_COMPANY_SIZE.SMALL]: '11-50 employees',
[CONST.ONBOARDING_COMPANY_SIZE.MEDIUM_SMALL]: '51-100 employees',
[CONST.ONBOARDING_COMPANY_SIZE.MEDIUM]: '101-1,000 employees',
[CONST.ONBOARDING_COMPANY_SIZE.LARGE]: 'More than 1,000 employees',
},
accounting: {
title: 'Do you use any accounting software?',
description: 'Connect your accounting software directly to Expensify',
noneOfAbove: 'None of the above',
},
error: {
requiredFirstName: 'Please input your first name to continue.',
},
Expand Down
13 changes: 13 additions & 0 deletions src/languages/es.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1637,6 +1637,19 @@ export default {
[CONST.ONBOARDING_CHOICES.CHAT_SPLIT]: 'Chatea y divide gastos con tus amigos',
[CONST.ONBOARDING_CHOICES.LOOKING_AROUND]: 'Algo más',
},
employees: {
title: 'How many empleados do you have?',
[CONST.ONBOARDING_COMPANY_SIZE.MICRO]: '1-10 empleados',
[CONST.ONBOARDING_COMPANY_SIZE.SMALL]: '11-50 empleados',
[CONST.ONBOARDING_COMPANY_SIZE.MEDIUM_SMALL]: '51-100 empleados',
[CONST.ONBOARDING_COMPANY_SIZE.MEDIUM]: '101-1,000 empleados',
[CONST.ONBOARDING_COMPANY_SIZE.LARGE]: 'More than 1,000 empleados',
},
accounting: {
title: 'Do you use any accounting software?',
description: 'Connect your accounting software directly to Expensify',
noneOfAbove: 'None of the above',
},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@marcaaron Should we confirm these copies on this PR or will complete on the next PR?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is already confirmed. We need translations though.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nkdengineer Please ask in Slack for the translations

error: {
requiredFirstName: 'Introduce tu nombre para continuar.',
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ import OnboardingModalNavigatorScreenOptions from '@libs/Navigation/AppNavigator
import Navigation from '@libs/Navigation/Navigation';
import type {OnboardingModalNavigatorParamList} from '@libs/Navigation/types';
import OnboardingRefManager from '@libs/OnboardingRefManager';
import OnboardingAccounting from '@pages/OnboardingAccounting';
import OnboardingEmployees from '@pages/OnboardingEmployees';
import OnboardingPersonalDetails from '@pages/OnboardingPersonalDetails';
import OnboardingPurpose from '@pages/OnboardingPurpose';
import OnboardingWork from '@pages/OnboardingWork';
Expand Down Expand Up @@ -87,6 +89,14 @@ function OnboardingModalNavigator() {
name={SCREENS.ONBOARDING.WORK}
component={OnboardingWork}
/>
<Stack.Screen
name={SCREENS.ONBOARDING.EMPLOYEES}
component={OnboardingEmployees}
/>
<Stack.Screen
name={SCREENS.ONBOARDING.ACCOUNTING}
component={OnboardingAccounting}
/>
</Stack.Navigator>
</View>
</FocusTrapForScreens>
Expand Down
8 changes: 8 additions & 0 deletions src/libs/Navigation/linkingConfig/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,14 @@ const config: LinkingOptions<RootStackParamList>['config'] = {
path: ROUTES.ONBOARDING_WORK.route,
exact: true,
},
[SCREENS.ONBOARDING.EMPLOYEES]: {
path: ROUTES.ONBOARDING_EMPLOYEES.route,
exact: true,
},
[SCREENS.ONBOARDING.ACCOUNTING]: {
path: ROUTES.ONBOARDING_ACCOUNTING.route,
exact: true,
},
},
},
[NAVIGATORS.RIGHT_MODAL_NAVIGATOR]: {
Expand Down
6 changes: 6 additions & 0 deletions src/libs/Navigation/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1307,6 +1307,12 @@ type OnboardingModalNavigatorParamList = {
[SCREENS.ONBOARDING.WORK]: {
backTo?: string;
};
[SCREENS.ONBOARDING.EMPLOYEES]: {
backTo?: string;
};
[SCREENS.ONBOARDING.ACCOUNTING]: {
backTo?: string;
};
};

type WelcomeVideoModalNavigatorParamList = {
Expand Down
9 changes: 8 additions & 1 deletion src/libs/NavigationUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,14 @@ const CENTRAL_PANE_SCREEN_NAMES = new Set([
SCREENS.REPORT,
]);

const ONBOARDING_SCREEN_NAMES = new Set([SCREENS.ONBOARDING.PERSONAL_DETAILS, SCREENS.ONBOARDING.PURPOSE, SCREENS.ONBOARDING.WORK, SCREENS.ONBOARDING_MODAL.ONBOARDING]);
const ONBOARDING_SCREEN_NAMES = new Set([
SCREENS.ONBOARDING.PERSONAL_DETAILS,
SCREENS.ONBOARDING.PURPOSE,
SCREENS.ONBOARDING.WORK,
SCREENS.ONBOARDING_MODAL.ONBOARDING,
SCREENS.ONBOARDING.EMPLOYEES,
SCREENS.ONBOARDING.ACCOUNTING,
]);

const removePolicyIDParamFromState = (state: State<RootStackParamList>) => {
const stateCopy = cloneDeep(state);
Expand Down
4 changes: 4 additions & 0 deletions src/libs/actions/Welcome/OnboardingFlow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ function adaptOnboardingRouteState() {
name: SCREENS.ONBOARDING.WORK,
params: currentRoute?.params,
},
{
name: SCREENS.ONBOARDING.EMPLOYEES,
params: currentRoute?.params,
},
{...currentRoute},
],
} as Readonly<PartialState<NavigationState>>;
Expand Down
7 changes: 6 additions & 1 deletion src/libs/actions/Welcome/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import * as API from '@libs/API';
import {WRITE_COMMANDS} from '@libs/API/types';
import Navigation from '@libs/Navigation/Navigation';
import variables from '@styles/variables';
import type {OnboardingPurposeType} from '@src/CONST';
import type {OnboardingCompanySizeType, OnboardingPurposeType} from '@src/CONST';
import ONYXKEYS from '@src/ONYXKEYS';
import ROUTES from '@src/ROUTES';
import type Onboarding from '@src/types/onyx/Onboarding';
Expand Down Expand Up @@ -144,6 +144,10 @@ function setOnboardingPurposeSelected(value: OnboardingPurposeType) {
Onyx.set(ONYXKEYS.ONBOARDING_PURPOSE_SELECTED, value ?? null);
}

function setOnboardingCompanySize(value: OnboardingCompanySizeType) {
Onyx.set(ONYXKEYS.ONBOARDING_COMPANY_SIZE, value);
}

function setOnboardingErrorMessage(value: string) {
Onyx.set(ONYXKEYS.ONBOARDING_ERROR_MESSAGE, value ?? null);
}
Expand Down Expand Up @@ -236,4 +240,5 @@ export {
completeHybridAppOnboarding,
handleHybridAppOnboarding,
setOnboardingErrorMessage,
setOnboardingCompanySize,
};
Loading
Loading