|
1 | 1 | import React from 'react';
|
2 | 2 | import PropTypes from 'prop-types';
|
3 |
| -import {ActivityIndicator, View, ScrollView} from 'react-native'; |
| 3 | +import {View, ScrollView} from 'react-native'; |
4 | 4 | import {withOnyx} from 'react-native-onyx';
|
5 | 5 | import lodashGet from 'lodash/get';
|
6 | 6 | import styles from '../../styles/styles';
|
7 |
| -import themeColors from '../../styles/themes/default'; |
8 | 7 | import Navigation from '../../libs/Navigation/Navigation';
|
9 | 8 | import compose from '../../libs/compose';
|
10 | 9 | import ROUTES from '../../ROUTES';
|
@@ -104,24 +103,16 @@ class WorkspacePageWithSections extends React.Component {
|
104 | 103 | onBackButtonPress={() => Navigation.navigate(ROUTES.getWorkspaceInitialRoute(policyID))}
|
105 | 104 | onCloseButtonPress={() => Navigation.dismissModal()}
|
106 | 105 | />
|
107 |
| - {this.props.reimbursementAccount.loading ? ( |
108 |
| - <View style={[styles.flex1, styles.alignItemsCenter, styles.justifyContentCenter]}> |
109 |
| - <ActivityIndicator color={themeColors.spinner} size="large" /> |
| 106 | + <ScrollView |
| 107 | + style={[styles.settingsPageBackground, styles.flex1, styles.w100]} |
| 108 | + > |
| 109 | + <View style={[styles.w100, styles.flex1]}> |
| 110 | + |
| 111 | + {this.props.children(hasVBA, policyID, isUsingECard)} |
| 112 | + |
110 | 113 | </View>
|
111 |
| - ) : ( |
112 |
| - <> |
113 |
| - <ScrollView |
114 |
| - style={[styles.settingsPageBackground, styles.flex1, styles.w100]} |
115 |
| - > |
116 |
| - <View style={[styles.w100, styles.flex1]}> |
117 |
| - |
118 |
| - {this.props.children(hasVBA, policyID, isUsingECard)} |
119 |
| - |
120 |
| - </View> |
121 |
| - </ScrollView> |
122 |
| - {this.props.footer} |
123 |
| - </> |
124 |
| - )} |
| 114 | + </ScrollView> |
| 115 | + {this.props.footer} |
125 | 116 | </ScreenWrapper>
|
126 | 117 | );
|
127 | 118 | }
|
|
0 commit comments