|
@@ -83,7 +83,7 @@ class HomeScreen extends React.Component<Props> {
|
83
|
83
|
if (this.props.route.params.nextScreen !== undefined && this.props.route.params.nextScreen !== null) {
|
84
|
84
|
this.props.navigation.navigate(this.props.route.params.nextScreen, this.props.route.params.data);
|
85
|
85
|
// reset params to prevent infinite loop
|
86
|
|
- this.props.navigation.dispatch(CommonActions.setParams({ nextScreen: null }));
|
|
86
|
+ this.props.navigation.dispatch(CommonActions.setParams({nextScreen: null}));
|
87
|
87
|
}
|
88
|
88
|
}
|
89
|
89
|
};
|
|
@@ -137,7 +137,7 @@ class HomeScreen extends React.Component<Props> {
|
137
|
137
|
id: SECTIONS_ID[1]
|
138
|
138
|
}
|
139
|
139
|
];
|
140
|
|
- }
|
|
140
|
+ };
|
141
|
141
|
|
142
|
142
|
/**
|
143
|
143
|
* Generates the dataset associated to the dashboard to be displayed in the FlatList as a section
|
|
@@ -349,7 +349,7 @@ class HomeScreen extends React.Component<Props> {
|
349
|
349
|
|
350
|
350
|
let displayEvent = this.getDisplayEvent(futureEvents);
|
351
|
351
|
const clickContainerAction = () => this.props.navigation.navigate('planning');
|
352
|
|
- const clickPreviewAction = () => this.props.navigation.navigate('planning-information', {data: displayEvent});
|
|
352
|
+ const clickPreviewAction = () => this.props.navigation.navigate('home-planning-information', {data: displayEvent});
|
353
|
353
|
|
354
|
354
|
return (
|
355
|
355
|
<DashboardItem
|
|
@@ -469,13 +469,13 @@ class HomeScreen extends React.Component<Props> {
|
469
|
469
|
const nav = this.props.navigation;
|
470
|
470
|
return (
|
471
|
471
|
<View>
|
472
|
|
- <WebSectionList
|
473
|
|
- createDataset={this.createDataset}
|
474
|
|
- navigation={nav}
|
475
|
|
- autoRefreshTime={REFRESH_TIME}
|
476
|
|
- refreshOnFocus={true}
|
477
|
|
- fetchUrl={DATA_URL}
|
478
|
|
- renderItem={this.getRenderItem}/>
|
|
472
|
+ <WebSectionList
|
|
473
|
+ createDataset={this.createDataset}
|
|
474
|
+ navigation={nav}
|
|
475
|
+ autoRefreshTime={REFRESH_TIME}
|
|
476
|
+ refreshOnFocus={true}
|
|
477
|
+ fetchUrl={DATA_URL}
|
|
478
|
+ renderItem={this.getRenderItem}/>
|
479
|
479
|
<FAB
|
480
|
480
|
style={styles.fab}
|
481
|
481
|
icon="qrcode-scan"
|