Skip to content

Commit 897ba6e

Browse files
committed
prettier
1 parent f522e9a commit 897ba6e

2 files changed

Lines changed: 44 additions & 8 deletions

File tree

src/pages/workspace/expensifyCard/issueNew/CardTypeStep.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ import useLocalize from '@hooks/useLocalize';
99
import useOnyx from '@hooks/useOnyx';
1010
import useThemeStyles from '@hooks/useThemeStyles';
1111
import {clearIssueNewCardFlow, setIssueNewCardStepAndData} from '@libs/actions/Card';
12+
import Navigation from '@libs/Navigation/Navigation';
1213
import variables from '@styles/variables';
1314
import CONST from '@src/CONST';
1415
import ONYXKEYS from '@src/ONYXKEYS';
15-
import Navigation from '@libs/Navigation/Navigation';
1616

1717
type CardTypeStepProps = {
1818
/** ID of the policy */

src/pages/workspace/expensifyCard/issueNew/IssueNewCardPage.tsx

Lines changed: 43 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React, {useEffect, useMemo} from 'react';
2-
import type { OnyxEntry } from 'react-native-onyx';
2+
import type {OnyxEntry} from 'react-native-onyx';
33
import DelegateNoAccessWrapper from '@components/DelegateNoAccessWrapper';
44
import ScreenWrapper from '@components/ScreenWrapper';
55
import useInitial from '@hooks/useInitial';
@@ -60,15 +60,45 @@ function IssueNewCardPage({policy, route}: IssueNewCardPageProps) {
6060
const getCurrentStep = () => {
6161
switch (currentStep) {
6262
case CONST.EXPENSIFY_CARD.STEP.ASSIGNEE:
63-
return <AssigneeStep policy={policy} stepNames={stepNames} startFrom={startFrom} />;
63+
return (
64+
<AssigneeStep
65+
policy={policy}
66+
stepNames={stepNames}
67+
startFrom={startFrom}
68+
/>
69+
);
6470
case CONST.EXPENSIFY_CARD.STEP.CARD_TYPE:
65-
return <CardTypeStep policyID={policyID} stepNames={stepNames} startFrom={startFrom} />;
71+
return (
72+
<CardTypeStep
73+
policyID={policyID}
74+
stepNames={stepNames}
75+
startFrom={startFrom}
76+
/>
77+
);
6678
case CONST.EXPENSIFY_CARD.STEP.LIMIT_TYPE:
67-
return <LimitTypeStep policy={policy} stepNames={stepNames} startFrom={startFrom} />;
79+
return (
80+
<LimitTypeStep
81+
policy={policy}
82+
stepNames={stepNames}
83+
startFrom={startFrom}
84+
/>
85+
);
6886
case CONST.EXPENSIFY_CARD.STEP.LIMIT:
69-
return <LimitStep policyID={policyID} stepNames={stepNames} startFrom={startFrom} />;
87+
return (
88+
<LimitStep
89+
policyID={policyID}
90+
stepNames={stepNames}
91+
startFrom={startFrom}
92+
/>
93+
);
7094
case CONST.EXPENSIFY_CARD.STEP.CARD_NAME:
71-
return <CardNameStep policyID={policyID} stepNames={stepNames} startFrom={startFrom} />;
95+
return (
96+
<CardNameStep
97+
policyID={policyID}
98+
stepNames={stepNames}
99+
startFrom={startFrom}
100+
/>
101+
);
72102
case CONST.EXPENSIFY_CARD.STEP.CONFIRMATION:
73103
return (
74104
<ConfirmationStep
@@ -79,7 +109,13 @@ function IssueNewCardPage({policy, route}: IssueNewCardPageProps) {
79109
/>
80110
);
81111
default:
82-
return <AssigneeStep policy={policy} stepNames={stepNames} startFrom={startFrom} />;
112+
return (
113+
<AssigneeStep
114+
policy={policy}
115+
stepNames={stepNames}
116+
startFrom={startFrom}
117+
/>
118+
);
83119
}
84120
};
85121

0 commit comments

Comments
 (0)