-
Notifications
You must be signed in to change notification settings - Fork 2.9k
/
WorkspaceReimbursePage.tsx
33 lines (28 loc) · 1.35 KB
/
WorkspaceReimbursePage.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import type {StackScreenProps} from '@react-navigation/stack';
import React from 'react';
import useLocalize from '@hooks/useLocalize';
import type {WorkspacesCentralPaneNavigatorParamList} from '@libs/Navigation/types';
import type {WithPolicyProps} from '@pages/workspace/withPolicy';
import withPolicy from '@pages/workspace/withPolicy';
import WorkspacePageWithSections from '@pages/workspace/WorkspacePageWithSections';
import CONST from '@src/CONST';
import type SCREENS from '@src/SCREENS';
import WorkspaceReimburseView from './WorkspaceReimburseView';
type WorkspaceReimbursePageProps = WithPolicyProps & StackScreenProps<WorkspacesCentralPaneNavigatorParamList, typeof SCREENS.WORKSPACE.REIMBURSE>;
function WorkspaceReimbursePage({route, policy}: WorkspaceReimbursePageProps) {
const {translate} = useLocalize();
return (
<WorkspacePageWithSections
shouldUseScrollView
headerText={translate('workspace.common.reimburse')}
route={route}
guidesCallTaskID={CONST.GUIDES_CALL_TASK_IDS.WORKSPACE_REIMBURSE}
shouldSkipVBBACall
shouldShowLoading={false}
>
{() => <WorkspaceReimburseView policy={policy} />}
</WorkspacePageWithSections>
);
}
WorkspaceReimbursePage.displayName = 'WorkspaceReimbursePage';
export default withPolicy(WorkspaceReimbursePage);