adhesion groupe termine
This commit is contained in:
parent
bca8f308b2
commit
5b0af68c08
File diff suppressed because one or more lines are too long
|
@ -108,6 +108,7 @@
|
||||||
"MANAGE_GROUP": "Manage group",
|
"MANAGE_GROUP": "Manage group",
|
||||||
"VALIDATION_DEMAND": "Validation request",
|
"VALIDATION_DEMAND": "Validation request",
|
||||||
"DELETE_DEMAND": "Deletion request",
|
"DELETE_DEMAND": "Deletion request",
|
||||||
|
"TYPE_DEMAND": "Demand type",
|
||||||
"GROUP_INFOS": "Fill in the group information",
|
"GROUP_INFOS": "Fill in the group information",
|
||||||
"GROUP_CODE": "Group code",
|
"GROUP_CODE": "Group code",
|
||||||
"NOM_GROUP": "Group name",
|
"NOM_GROUP": "Group name",
|
||||||
|
@ -209,6 +210,7 @@
|
||||||
"NEXT": "Next",
|
"NEXT": "Next",
|
||||||
"PREVIOUS": "Previous",
|
"PREVIOUS": "Previous",
|
||||||
"SPONSOR_CODE": "Sponsor Code",
|
"SPONSOR_CODE": "Sponsor Code",
|
||||||
|
"CODE_SPONSOR": "Sponsor code",
|
||||||
"SOLDE_UNVAIBLE": "solde unavailable",
|
"SOLDE_UNVAIBLE": "solde unavailable",
|
||||||
"TEXT_BIG_CREATE_AGENT_1": "Register as Agent",
|
"TEXT_BIG_CREATE_AGENT_1": "Register as Agent",
|
||||||
"EMAIL": "Email",
|
"EMAIL": "Email",
|
||||||
|
|
|
@ -109,6 +109,7 @@
|
||||||
"MANAGE_GROUP": "Gérer le groupe",
|
"MANAGE_GROUP": "Gérer le groupe",
|
||||||
"VALIDATION_DEMAND": "Demandes de validation",
|
"VALIDATION_DEMAND": "Demandes de validation",
|
||||||
"DELETE_DEMAND": "Demande de suppression",
|
"DELETE_DEMAND": "Demande de suppression",
|
||||||
|
"TYPE_DEMAND": "Type de demande",
|
||||||
"GROUP_INFOS": "Renseigner les informations du groupe",
|
"GROUP_INFOS": "Renseigner les informations du groupe",
|
||||||
"GROUP_CODE": "Code du groupe",
|
"GROUP_CODE": "Code du groupe",
|
||||||
"SUCCESS_CREATION_GROUP": "Informations sur la création",
|
"SUCCESS_CREATION_GROUP": "Informations sur la création",
|
||||||
|
@ -214,6 +215,7 @@
|
||||||
"NEXT": "Suivant",
|
"NEXT": "Suivant",
|
||||||
"PREVIOUS": "Précédent",
|
"PREVIOUS": "Précédent",
|
||||||
"SPONSOR_CODE": "Code parrain",
|
"SPONSOR_CODE": "Code parrain",
|
||||||
|
"CODE_SPONSOR": "Code sponsor",
|
||||||
"SOLDE_UNVAIBLE": "solde non disponible",
|
"SOLDE_UNVAIBLE": "solde non disponible",
|
||||||
"TEXT_BIG_CREATE_AGENT_1": "Inscrivez-vous en comme Agent",
|
"TEXT_BIG_CREATE_AGENT_1": "Inscrivez-vous en comme Agent",
|
||||||
"EMAIL": "Email",
|
"EMAIL": "Email",
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { CREATE_GROUP_PENDING, CREATE_GROUP_SUCCESS, CREATE_GROUP_ERROR, CREATE_GROUP_RESET, GET_DEMAND_GROUP_PENDING, GET_DEMAND_GROUP_SUCCESS, GET_DEMAND_GROUP_ERROR, GET_DEMAND_GROUP_RESET, GET_UNIQUE_DEMAND_GROUP_PENDING, GET_UNIQUE_DEMAND_GROUP_RESET, GET_UNIQUE_DEMAND_GROUP_ERROR, GET_UNIQUE_DEMAND_GROUP_SUCCESS, TREAT_DEMAND_GROUP_PENDING, TREAT_DEMAND_GROUP_SUCCESS, TREAT_DEMAND_GROUP_ERROR, TREAT_DEMAND_GROUP_RESET, JOIN_GROUP_PENDING, JOIN_GROUP_SUCCESS, JOIN_GROUP_RESET, JOIN_GROUP_ERROR, GET_USER_GROUP_DETAIL_PENDING, GET_USER_GROUP_DETAIL_SUCCESS, GET_USER_GROUP_DETAIL_RESET, GET_USER_GROUP_DETAIL_ERROR, GET_NOTIFICATIONS_ERROR, GET_NOTIFICATIONS_RESET, GET_NOTIFICATIONS_PENDING } from "../types/NanoCreditType";
|
import { CREATE_GROUP_PENDING, CREATE_GROUP_SUCCESS, CREATE_GROUP_ERROR, CREATE_GROUP_RESET, GET_DEMAND_GROUP_PENDING, GET_DEMAND_GROUP_SUCCESS, GET_DEMAND_GROUP_ERROR, GET_DEMAND_GROUP_RESET, GET_UNIQUE_DEMAND_GROUP_PENDING, GET_UNIQUE_DEMAND_GROUP_RESET, GET_UNIQUE_DEMAND_GROUP_ERROR, GET_UNIQUE_DEMAND_GROUP_SUCCESS, TREAT_DEMAND_GROUP_PENDING, TREAT_DEMAND_GROUP_SUCCESS, TREAT_DEMAND_GROUP_ERROR, TREAT_DEMAND_GROUP_RESET, JOIN_GROUP_PENDING, JOIN_GROUP_SUCCESS, JOIN_GROUP_RESET, JOIN_GROUP_ERROR, GET_USER_GROUP_DETAIL_PENDING, GET_USER_GROUP_DETAIL_SUCCESS, GET_USER_GROUP_DETAIL_RESET, GET_USER_GROUP_DETAIL_ERROR, GET_NOTIFICATIONS_ERROR, GET_NOTIFICATIONS_RESET, GET_NOTIFICATIONS_PENDING, GET_NOTIFICATIONS_SUCCESS } from "../types/NanoCreditType";
|
||||||
|
|
||||||
export const fetchCreateGroupPending = () => ({
|
export const fetchCreateGroupPending = () => ({
|
||||||
type: CREATE_GROUP_PENDING
|
type: CREATE_GROUP_PENDING
|
||||||
|
|
|
@ -1426,7 +1426,7 @@ class Home extends BaseScreen {
|
||||||
translucent={true}
|
translucent={true}
|
||||||
/>
|
/>
|
||||||
{/* Start here to comment */}
|
{/* Start here to comment */}
|
||||||
{/* {
|
{
|
||||||
(this.state.loadingDialog || this.props.loading) ?
|
(this.state.loadingDialog || this.props.loading) ?
|
||||||
<View
|
<View
|
||||||
style={{ position: "absolute", zIndex: 1, backgroundColor: "#00000050", width: this.state.loadingDialog ? responsiveWidth(100) : 0, height: this.state.loadingDialog ? responsiveHeight(100) : 0, flex: 1, justifyContent: 'center', alignItems: 'center' }}
|
style={{ position: "absolute", zIndex: 1, backgroundColor: "#00000050", width: this.state.loadingDialog ? responsiveWidth(100) : 0, height: this.state.loadingDialog ? responsiveHeight(100) : 0, flex: 1, justifyContent: 'center', alignItems: 'center' }}
|
||||||
|
@ -1462,7 +1462,7 @@ class Home extends BaseScreen {
|
||||||
this.setState({ showProgress: false })
|
this.setState({ showProgress: false })
|
||||||
Alert.alert(I18n.t("PROBLEM_OCCUR"), I18n.t("PROBLEM_OCCUR_DIRECTION"), [{ text: "Ok", onPress: () => { } }])
|
Alert.alert(I18n.t("PROBLEM_OCCUR"), I18n.t("PROBLEM_OCCUR_DIRECTION"), [{ text: "Ok", onPress: () => { } }])
|
||||||
}}
|
}}
|
||||||
/> */}
|
/>
|
||||||
{this.makeCardSearch()}
|
{this.makeCardSearch()}
|
||||||
{this.makeSlidingUp()}
|
{this.makeSlidingUp()}
|
||||||
{this.makeDialogLoader()}
|
{this.makeDialogLoader()}
|
||||||
|
|
|
@ -54,6 +54,7 @@ class AdhererGroupNanoCredit extends Component {
|
||||||
codeGroupe: null,
|
codeGroupe: null,
|
||||||
codeSponsor: null,
|
codeSponsor: null,
|
||||||
nomGroupe: null,
|
nomGroupe: null,
|
||||||
|
codeSponsor: null,
|
||||||
user: null,
|
user: null,
|
||||||
triggerSubmitClick: false,
|
triggerSubmitClick: false,
|
||||||
isSubmitClick: false,
|
isSubmitClick: false,
|
||||||
|
@ -129,17 +130,18 @@ class AdhererGroupNanoCredit extends Component {
|
||||||
|
|
||||||
|
|
||||||
onSubmitSendWalletToCard = () => {
|
onSubmitSendWalletToCard = () => {
|
||||||
const { codeGroupe } = this.state;
|
const { codeGroupe, codeSponsor } = this.state;
|
||||||
|
|
||||||
if (this.ckeckIfFieldIsOK(codeGroupe))
|
if (this.ckeckIfFieldIsOK(codeGroupe))
|
||||||
this.nomGroupeAnim.shake(800);
|
this.nomGroupeAnim.shake(800);
|
||||||
|
else if (this.ckeckIfFieldIsOK(codeSponsor))
|
||||||
|
this.nomGroupeAnim.shake(800);
|
||||||
else {
|
else {
|
||||||
|
|
||||||
this.props.joinGroupAction({
|
this.props.joinGroupAction({
|
||||||
id_user: this.state.user.id,
|
id_user: this.state.user.id,
|
||||||
code_groupe: this.state.codeGroupe,
|
code_groupe: this.state.codeGroupe,
|
||||||
code_sponsor: this.state.user.user_code,
|
code_sponsor: this.state.codeSponsor,
|
||||||
id_user: 12
|
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -183,6 +185,21 @@ class AdhererGroupNanoCredit extends Component {
|
||||||
</Fumi>
|
</Fumi>
|
||||||
</Animatable.View>
|
</Animatable.View>
|
||||||
|
|
||||||
|
<Animatable.View ref={(comp) => { this.codeSponsorAnim = comp }}>
|
||||||
|
<Fumi iconClass={FontAwesomeIcon} iconName={'user-secret'}
|
||||||
|
label={I18n.t('CODE_SPONSOR')}
|
||||||
|
iconColor={'#f95a25'}
|
||||||
|
iconSize={20}
|
||||||
|
value={this.state.codeSponsor}
|
||||||
|
onChangeText={(codeSponsor) => {
|
||||||
|
|
||||||
|
this.setState({ codeSponsor })
|
||||||
|
}}
|
||||||
|
style={styles.input}
|
||||||
|
>
|
||||||
|
</Fumi>
|
||||||
|
</Animatable.View>
|
||||||
|
|
||||||
<Button style={styles.btnvalide}
|
<Button style={styles.btnvalide}
|
||||||
textStyle={styles.textbtnvalide}
|
textStyle={styles.textbtnvalide}
|
||||||
onPress={() => { this.onSubmitSendWalletToCard(); }}>
|
onPress={() => { this.onSubmitSendWalletToCard(); }}>
|
||||||
|
|
|
@ -18,6 +18,7 @@ let theme = require('./../../utils/theme.json');
|
||||||
import { connect } from 'react-redux';
|
import { connect } from 'react-redux';
|
||||||
import { bindActionCreators } from 'redux';
|
import { bindActionCreators } from 'redux';
|
||||||
import Toast from 'react-native-root-toast';
|
import Toast from 'react-native-root-toast';
|
||||||
|
import _ from 'lodash';
|
||||||
import { Color } from '../../config/Color'
|
import { Color } from '../../config/Color'
|
||||||
const route = require("./../../route.json");
|
const route = require("./../../route.json");
|
||||||
import Dialog from "react-native-dialog";
|
import Dialog from "react-native-dialog";
|
||||||
|
@ -431,7 +432,7 @@ class MyNanoCreditGroup extends Component {
|
||||||
</View>
|
</View>
|
||||||
</CardView>
|
</CardView>
|
||||||
|
|
||||||
{this.renderBtn()}
|
{_.isEqual(parseInt(this.state.user.id), resultGetUniqueDemand.response.id_createur) && this.renderBtn()}
|
||||||
</View>);
|
</View>);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -8,6 +8,7 @@ import { Header } from "react-native-elements";
|
||||||
import { bindActionCreators } from 'redux';
|
import { bindActionCreators } from 'redux';
|
||||||
import { getNotificationAction, getNotificationReset } from '../../webservice/OnesignalApi';
|
import { getNotificationAction, getNotificationReset } from '../../webservice/OnesignalApi';
|
||||||
import { connect } from 'react-redux';
|
import { connect } from 'react-redux';
|
||||||
|
import { readUser } from '../../webservice/AuthApi';
|
||||||
const theme = require('./../../utils/theme.json')
|
const theme = require('./../../utils/theme.json')
|
||||||
class Notifications extends BaseScreen {
|
class Notifications extends BaseScreen {
|
||||||
static navigatorStyle = {
|
static navigatorStyle = {
|
||||||
|
@ -63,7 +64,9 @@ class Notifications extends BaseScreen {
|
||||||
if (user) {
|
if (user) {
|
||||||
if (user !== undefined) {
|
if (user !== undefined) {
|
||||||
if (user.phone !== undefined) {
|
if (user.phone !== undefined) {
|
||||||
this.props.getNotificationAction(user.user_code);
|
this.props.getNotificationAction({
|
||||||
|
user_code: user.user_code
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -210,6 +210,7 @@
|
||||||
"NEXT": "Next",
|
"NEXT": "Next",
|
||||||
"PREVIOUS": "Previous",
|
"PREVIOUS": "Previous",
|
||||||
"SPONSOR_CODE": "Sponsor Code",
|
"SPONSOR_CODE": "Sponsor Code",
|
||||||
|
"CODE_SPONSOR": "Sponsor code",
|
||||||
"SOLDE_UNVAIBLE": "solde unavailable",
|
"SOLDE_UNVAIBLE": "solde unavailable",
|
||||||
"TEXT_BIG_CREATE_AGENT_1": "Register as Agent",
|
"TEXT_BIG_CREATE_AGENT_1": "Register as Agent",
|
||||||
"EMAIL": "Email",
|
"EMAIL": "Email",
|
||||||
|
|
|
@ -215,6 +215,7 @@
|
||||||
"NEXT": "Suivant",
|
"NEXT": "Suivant",
|
||||||
"PREVIOUS": "Précédent",
|
"PREVIOUS": "Précédent",
|
||||||
"SPONSOR_CODE": "Code parrain",
|
"SPONSOR_CODE": "Code parrain",
|
||||||
|
"CODE_SPONSOR": "Code sponsor",
|
||||||
"SOLDE_UNVAIBLE": "solde non disponible",
|
"SOLDE_UNVAIBLE": "solde non disponible",
|
||||||
"TEXT_BIG_CREATE_AGENT_1": "Inscrivez-vous en comme Agent",
|
"TEXT_BIG_CREATE_AGENT_1": "Inscrivez-vous en comme Agent",
|
||||||
"EMAIL": "Email",
|
"EMAIL": "Email",
|
||||||
|
|
|
@ -4,7 +4,7 @@ import I18n from 'react-native-i18n';
|
||||||
import { store } from "../redux/store";
|
import { store } from "../redux/store";
|
||||||
import { saveOnesignalIds, getNotificationUrl } from "./IlinkConstants";
|
import { saveOnesignalIds, getNotificationUrl } from "./IlinkConstants";
|
||||||
import { fetchSaveOnesignalPlayerIdsPending, fetchSaveOnesignalPlayerIdsSuccess, fetchSaveOnesignalPlayerIdsError, fetchSaveOnesignalPlayerIdsReset } from "../redux/actions/NotificationAction";
|
import { fetchSaveOnesignalPlayerIdsPending, fetchSaveOnesignalPlayerIdsSuccess, fetchSaveOnesignalPlayerIdsError, fetchSaveOnesignalPlayerIdsReset } from "../redux/actions/NotificationAction";
|
||||||
import { fetchGetNotificationSuccess } from "../redux/actions/NanoCreditAction";
|
import { fetchGetNotificationSuccess, fetchGetNotificationPending, fetchGetNotificationError } from "../redux/actions/NanoCreditAction";
|
||||||
|
|
||||||
export const saveOnesignalIdsAction = (isUser, data) => {
|
export const saveOnesignalIdsAction = (isUser, data) => {
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue