Demands Detail OK
This commit is contained in:
parent
2f3ddf5a2f
commit
e43d6dc6b1
14
App.js
14
App.js
|
@ -145,7 +145,7 @@ const AppStack = createDrawerNavigator({
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
navigationOptions: ({ navigation }) => ({
|
navigationOptions: () => ({
|
||||||
header: null,
|
header: null,
|
||||||
headerMode: 'none',
|
headerMode: 'none',
|
||||||
headerTitle: null,
|
headerTitle: null,
|
||||||
|
@ -187,7 +187,7 @@ const AppAgentStack = createDrawerNavigator({
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
navigationOptions: ({ navigation }) => ({
|
navigationOptions: () => ({
|
||||||
header: null,
|
header: null,
|
||||||
headerMode: 'none',
|
headerMode: 'none',
|
||||||
headerTitle: null,
|
headerTitle: null,
|
||||||
|
@ -251,7 +251,7 @@ const AppAdministratorStack = createDrawerNavigator({
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
navigationOptions: ({ navigation }) => ({
|
navigationOptions: () => ({
|
||||||
header: null,
|
header: null,
|
||||||
headerMode: 'none',
|
headerMode: 'none',
|
||||||
headerTitle: null,
|
headerTitle: null,
|
||||||
|
@ -304,7 +304,7 @@ const AppSuperAdministrator = createDrawerNavigator({
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
navigationOptions: ({ navigation }) => ({
|
navigationOptions: () => ({
|
||||||
title: I18n.t('CREDIT_MANAGE'),
|
title: I18n.t('CREDIT_MANAGE'),
|
||||||
headerMode: "none",
|
headerMode: "none",
|
||||||
header: null,
|
header: null,
|
||||||
|
@ -350,8 +350,8 @@ const AppContainer = createAppContainer(AppNavigator);
|
||||||
class App extends React.Component {
|
class App extends React.Component {
|
||||||
|
|
||||||
|
|
||||||
constructor(properties) {
|
constructor(props) {
|
||||||
super(properties);
|
super(props);
|
||||||
console.log("APP PROPS", this.props);
|
console.log("APP PROPS", this.props);
|
||||||
|
|
||||||
//Remove this method to stop OneSignal Debugging
|
//Remove this method to stop OneSignal Debugging
|
||||||
|
@ -400,7 +400,7 @@ class App extends React.Component {
|
||||||
|
|
||||||
onOpened(openResult) {
|
onOpened(openResult) {
|
||||||
let data = openResult.notification.payload.additionalData;
|
let data = openResult.notification.payload.additionalData;
|
||||||
NavigationService.navigate('useraccount');
|
//this.handleDeepLink(openResult);
|
||||||
console.log('Message: ', openResult.notification.payload.body);
|
console.log('Message: ', openResult.notification.payload.body);
|
||||||
console.log('Data: ', openResult.notification.payload.additionalData);
|
console.log('Data: ', openResult.notification.payload.additionalData);
|
||||||
console.log('isActive: ', openResult.notification.isAppInFocus);
|
console.log('isActive: ', openResult.notification.isAppInFocus);
|
||||||
|
|
|
@ -57,7 +57,6 @@
|
||||||
"react-native-material-cards": "^1.0.9",
|
"react-native-material-cards": "^1.0.9",
|
||||||
"react-native-material-dialog": "^0.7.6",
|
"react-native-material-dialog": "^0.7.6",
|
||||||
"react-native-material-dropdown": "^0.11.1",
|
"react-native-material-dropdown": "^0.11.1",
|
||||||
"react-native-onesignal": "^3.9.0",
|
|
||||||
"react-native-paper": "^2.16.0",
|
"react-native-paper": "^2.16.0",
|
||||||
"react-native-phone-call": "^1.0.9",
|
"react-native-phone-call": "^1.0.9",
|
||||||
"react-native-popup-dialog": "^0.18.3",
|
"react-native-popup-dialog": "^0.18.3",
|
||||||
|
|
|
@ -125,7 +125,7 @@ class DemandValidationGroup extends React.Component {
|
||||||
this.navigation = this.props.navigation
|
this.navigation = this.props.navigation
|
||||||
this.currentLocale = DeviceInfo.getDeviceLocale().includes("fr") ? "fr" : "en-gb";
|
this.currentLocale = DeviceInfo.getDeviceLocale().includes("fr") ? "fr" : "en-gb";
|
||||||
//moment.locale(this.currentLocale);
|
//moment.locale(this.currentLocale);
|
||||||
IlinkEmitter.on('treatNanoGroupDemand', this.refreshData);
|
//IlinkEmitter.on('treatNanoGroupDemand', this.refreshData);
|
||||||
};
|
};
|
||||||
|
|
||||||
componentDidMount() {
|
componentDidMount() {
|
||||||
|
@ -297,7 +297,7 @@ class DemandValidationGroup extends React.Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
refreshData() {
|
refreshData() {
|
||||||
this.props.getNanoCreditDemandsAction(this.state.user.id);
|
//this.props.getNanoCreditDemandsAction(this.state.user.id);
|
||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
|
|
|
@ -25,6 +25,7 @@ import { FontWeight } from '../../config/typography'
|
||||||
import DeviceInfo from 'react-native-device-info'
|
import DeviceInfo from 'react-native-device-info'
|
||||||
import { getNanoCreditUniqueDemandsAction, getNanoCreditUniqueDemandsReset } from '../../webservice/user/NanoCreditApi'
|
import { getNanoCreditUniqueDemandsAction, getNanoCreditUniqueDemandsReset } from '../../webservice/user/NanoCreditApi'
|
||||||
import { treatDemandGroupAction, treatDemandGroupReset } from '../../webservice/NanoCreditApi'
|
import { treatDemandGroupAction, treatDemandGroupReset } from '../../webservice/NanoCreditApi'
|
||||||
|
import { IlinkEmitter } from '../../utils/events';
|
||||||
|
|
||||||
class DemandGroupNanoCreditDetail extends Component {
|
class DemandGroupNanoCreditDetail extends Component {
|
||||||
|
|
||||||
|
@ -162,7 +163,7 @@ class DemandGroupNanoCreditDetail extends Component {
|
||||||
if (resultTreatDemand.status === 200) {
|
if (resultTreatDemand.status === 200) {
|
||||||
this.displayToast(resultTreatDemand.response);
|
this.displayToast(resultTreatDemand.response);
|
||||||
this.props.navigation.goBack();
|
this.props.navigation.goBack();
|
||||||
IlinkEmitter.emit('treatNanoGroupDemand');
|
//IlinkEmitter.emit('treatNanoGroupDemand');
|
||||||
this.props.treatDemandGroupReset();
|
this.props.treatDemandGroupReset();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue