Commit bf68a2f6 by Giang Tran

update code

parent 529ebaf0
...@@ -26,41 +26,41 @@ const AccountView = (props) => { ...@@ -26,41 +26,41 @@ const AccountView = (props) => {
onPress={() => navigate.navigate(PROFILE)} onPress={() => navigate.navigate(PROFILE)}
style={styles.containerItem}> style={styles.containerItem}>
<Image source={R.images.iconUser} style={styles.imgIcon} /> <Image source={R.images.iconUser} style={styles.imgIcon} />
<AppText i18nKey={'MyProfile'}>Thông tin cá nhân</AppText> <AppText i18nKey={'MyProfile'}> </AppText>
</TouchableOpacity> </TouchableOpacity>
<TouchableOpacity <TouchableOpacity
onPress={() => navigate.navigate(AccountVerification)} onPress={() => navigate.navigate(AccountVerification)}
style={styles.containerItem}> style={styles.containerItem}>
<Image source={R.images.iconUserAccuracy} style={styles.imgIcon} /> <Image source={R.images.iconUserAccuracy} style={styles.imgIcon} />
<AppText i18nKey={'VerifyAccount'}>Xác thc tài khon</AppText> <AppText i18nKey={'VerifyAccount'}> </AppText>
</TouchableOpacity> </TouchableOpacity>
<TouchableOpacity <TouchableOpacity
onPress={() => navigate.navigate(PAYMENTS)} onPress={() => navigate.navigate(PAYMENTS)}
style={styles.containerItem}> style={styles.containerItem}>
<Image source={R.images.iconList} style={styles.imgIcon} /> <Image source={R.images.iconList} style={styles.imgIcon} />
<AppText i18nKey={'Payments'}>Các khon thanh toán</AppText> <AppText i18nKey={'Payments'}> </AppText>
</TouchableOpacity> </TouchableOpacity>
<TouchableOpacity <TouchableOpacity
onPress={() => navigate.navigate(ROSE)} onPress={() => navigate.navigate(ROSE)}
style={styles.containerItem}> style={styles.containerItem}>
<Image source={R.images.iconRose} style={styles.imgIcon} /> <Image source={R.images.iconRose} style={styles.imgIcon} />
<AppText i18nKey={'Rose'}>Hoa hng</AppText> <AppText i18nKey={'Rose'}> </AppText>
</TouchableOpacity> </TouchableOpacity>
<TouchableOpacity <TouchableOpacity
onPress={() => navigate.navigate(BONUSTEAM)} onPress={() => navigate.navigate(BONUSTEAM)}
style={styles.containerItem}> style={styles.containerItem}>
<Image source={R.images.iconWallet} style={styles.imgIcon} /> <Image source={R.images.iconWallet} style={styles.imgIcon} />
<AppText i18nKey={'TeamBonus'}>Tin thưởng đội nhóm</AppText> <AppText i18nKey={'TeamBonus'}> </AppText>
</TouchableOpacity> </TouchableOpacity>
<TouchableOpacity <TouchableOpacity
onPress={() => navigate.navigate(MYGROUP)} onPress={() => navigate.navigate(MYGROUP)}
style={styles.containerItem}> style={styles.containerItem}>
<Image source={R.images.moneyteam} style={styles.imgIcon} /> <Image source={R.images.moneyteam} style={styles.imgIcon} />
<AppText i18nKey={'MyPartner'}>Đối tác ca tôi</AppText> <AppText i18nKey={'MyPartner'}> </AppText>
</TouchableOpacity> </TouchableOpacity>
</View> </View>
</View> </View>
......
...@@ -17,6 +17,8 @@ import {getFontXD} from '../../Config/Functions'; ...@@ -17,6 +17,8 @@ import {getFontXD} from '../../Config/Functions';
const Tab = createMaterialTopTabNavigator(); const Tab = createMaterialTopTabNavigator();
import {connect} from 'react-redux'; import {connect} from 'react-redux';
import I18n from '../../helper/i18/i18n';
const AccountVerificationView = (props) => { const AccountVerificationView = (props) => {
return ( return (
<View style={{flex: 1}}> <View style={{flex: 1}}>
...@@ -32,12 +34,12 @@ const AccountVerificationView = (props) => { ...@@ -32,12 +34,12 @@ const AccountVerificationView = (props) => {
<Tab.Screen <Tab.Screen
name="GeneralInfor" name="GeneralInfor"
component={props.user.status == 1 ? GeneralInfor : GeneralView} component={props.user.status == 1 ? GeneralInfor : GeneralView}
options={{tabBarLabel: 'Thông tin chung'}} options={{tabBarLabel: I18n.t('GeneralInformation')}}
/> />
<Tab.Screen <Tab.Screen
name="Profile" name="Profile"
component={props.user.status == 1 ? Profile : ProfileView} component={props.user.status == 1 ? Profile : ProfileView}
options={{tabBarLabel: 'Hồ sơ'}} options={{tabBarLabel: I18n.t('Profile')}}
/> />
</Tab.Navigator> </Tab.Navigator>
</View> </View>
......
...@@ -56,9 +56,7 @@ const HistoryView = (props) => { ...@@ -56,9 +56,7 @@ const HistoryView = (props) => {
style={[ style={[
styles.txtFillter, styles.txtFillter,
selected == e.value ? {color: '#1473E6'} : {}, selected == e.value ? {color: '#1473E6'} : {},
]}> ]}></AppText>
{e.name}
</AppText>
</TouchableOpacity> </TouchableOpacity>
))} ))}
</ScrollView> </ScrollView>
...@@ -72,9 +70,7 @@ const HistoryView = (props) => { ...@@ -72,9 +70,7 @@ const HistoryView = (props) => {
style={{ style={{
fontSize: 18, fontSize: 18,
fontWeight: 'bold', fontWeight: 'bold',
}}> }}></AppText>
Không có d liu!
</AppText>
</View> </View>
) : ( ) : (
<FlatList <FlatList
......
...@@ -75,9 +75,7 @@ const Success = (props) => { ...@@ -75,9 +75,7 @@ const Success = (props) => {
style={{ style={{
fontSize: 18, fontSize: 18,
fontWeight: 'bold', fontWeight: 'bold',
}}> }}></AppText>
Không có d liu!
</AppText>
</View> </View>
) : ( ) : (
<FlatList <FlatList
......
...@@ -80,9 +80,7 @@ const Watting = (props) => { ...@@ -80,9 +80,7 @@ const Watting = (props) => {
style={{ style={{
fontSize: 18, fontSize: 18,
fontWeight: 'bold', fontWeight: 'bold',
}}> }}></AppText>
Không có d liu!
</AppText>
</View> </View>
) : ( ) : (
<FlatList <FlatList
......
...@@ -5,7 +5,8 @@ import Success from './Tab/Success'; ...@@ -5,7 +5,8 @@ import Success from './Tab/Success';
import Watting from './Tab/Watting'; import Watting from './Tab/Watting';
import {getFontXD} from '../../../Config/Functions'; import {getFontXD} from '../../../Config/Functions';
import {WALLETDEPOSIT, WALLETWITHDRAW} from '../../../routers/ScreenNames'; import {WALLETDEPOSIT, WALLETWITHDRAW} from '../../../routers/ScreenNames';
import I18n from '../../../helper/i18/i18n';
import AppText from '../../../components/AppText';
import {createMaterialTopTabNavigator} from '@react-navigation/material-top-tabs'; import {createMaterialTopTabNavigator} from '@react-navigation/material-top-tabs';
import R from '../../../assets/R'; import R from '../../../assets/R';
const Tab = createMaterialTopTabNavigator(); const Tab = createMaterialTopTabNavigator();
...@@ -28,12 +29,12 @@ const Wallet = (props) => { ...@@ -28,12 +29,12 @@ const Wallet = (props) => {
<Tab.Screen <Tab.Screen
name="Tab1" name="Tab1"
component={Watting} component={Watting}
options={{tabBarLabel: 'Đang chờ'}} options={{tabBarLabel: I18n.t('Waiting')}}
/> />
<Tab.Screen <Tab.Screen
name="Tab2" name="Tab2"
component={Success} component={Success}
options={{tabBarLabel: 'Thành công'}} options={{tabBarLabel: I18n.t('Success')}}
/> />
</Tab.Navigator> </Tab.Navigator>
</View> </View>
...@@ -41,12 +42,16 @@ const Wallet = (props) => { ...@@ -41,12 +42,16 @@ const Wallet = (props) => {
<TouchableOpacity <TouchableOpacity
onPress={() => navigate.navigate(WALLETDEPOSIT)} onPress={() => navigate.navigate(WALLETDEPOSIT)}
style={styles.btnLeft}> style={styles.btnLeft}>
<Text style={styles.txtTitle}>Np tin</Text> <AppText i18nKey={'Deposit'} style={styles.txtTitle}>
Np tin
</AppText>
</TouchableOpacity> </TouchableOpacity>
<TouchableOpacity <TouchableOpacity
onPress={() => navigate.navigate(WALLETWITHDRAW)} onPress={() => navigate.navigate(WALLETWITHDRAW)}
style={styles.btnRight}> style={styles.btnRight}>
<Text style={styles.txtTitle}>Rút tin</Text> <AppText i18nKey={'Withdraw'} style={styles.txtTitle}>
Rút tin
</AppText>
</TouchableOpacity> </TouchableOpacity>
</View> </View>
); );
......
...@@ -12,9 +12,7 @@ const Footer = (props) => { ...@@ -12,9 +12,7 @@ const Footer = (props) => {
<Image source={R.images.moneyteam} style={styles.imgIcon} /> <Image source={R.images.moneyteam} style={styles.imgIcon} />
</View> </View>
<View style={{flex: 1, paddingHorizontal: 15}}> <View style={{flex: 1, paddingHorizontal: 15}}>
<AppText i18nKey={'RevenueTeam'} style={styles.txt}> <AppText i18nKey={'RevenueTeam'} style={styles.txt}></AppText>
Doanh thu ca đội
</AppText>
<Text style={styles.txtMoney}>0 Đ</Text> <Text style={styles.txtMoney}>0 Đ</Text>
</View> </View>
<View style={{justifyContent: 'center', alignItems: 'center'}}> <View style={{justifyContent: 'center', alignItems: 'center'}}>
...@@ -27,9 +25,7 @@ const Footer = (props) => { ...@@ -27,9 +25,7 @@ const Footer = (props) => {
<Image source={R.images.moneysupport} style={styles.imgIcon} /> <Image source={R.images.moneysupport} style={styles.imgIcon} />
</View> </View>
<View style={{flex: 1, paddingHorizontal: 15}}> <View style={{flex: 1, paddingHorizontal: 15}}>
<AppText i18nKey={'RevenueDonors'} style={styles.txt}> <AppText i18nKey={'RevenueDonors'} style={styles.txt}></AppText>
Doanh thu nhà tài tr
</AppText>
<Text style={styles.txtMoney}> 0 Đ</Text> <Text style={styles.txtMoney}> 0 Đ</Text>
</View> </View>
<View style={{justifyContent: 'center', alignItems: 'center'}}> <View style={{justifyContent: 'center', alignItems: 'center'}}>
...@@ -42,9 +38,7 @@ const Footer = (props) => { ...@@ -42,9 +38,7 @@ const Footer = (props) => {
<Image source={R.images.moneyinvest} style={styles.imgIcon} /> <Image source={R.images.moneyinvest} style={styles.imgIcon} />
</View> </View>
<View style={{flex: 1, paddingHorizontal: 15}}> <View style={{flex: 1, paddingHorizontal: 15}}>
<AppText i18nKey={'Invset'} style={styles.txt}> <AppText i18nKey={'Invset'} style={styles.txt}></AppText>
Đầu tư
</AppText>
<Text style={styles.txtMoney}>0 Đ</Text> <Text style={styles.txtMoney}>0 Đ</Text>
</View> </View>
<View style={{justifyContent: 'center', alignItems: 'center'}}> <View style={{justifyContent: 'center', alignItems: 'center'}}>
......
...@@ -9,27 +9,34 @@ import { ...@@ -9,27 +9,34 @@ import {
LEGALCUSTOMER, LEGALCUSTOMER,
LEGALBUSINESS, LEGALBUSINESS,
} from '../../routers/ScreenNames'; } from '../../routers/ScreenNames';
import AppText from '../../components/AppText';
const LegalDocument = (props) => { const LegalDocument = (props) => {
const navigate = useNavigation(); const navigate = useNavigation();
return ( return (
<View style={{flex: 1}}> <View style={{flex: 1}}>
<HeaderBack title={'Giấy tờ pháp lý'} /> <HeaderBack title={'LegalDocument'} />
<View style={styles.container}> <View style={styles.container}>
<TouchableOpacity <TouchableOpacity
onPress={() => navigate.navigate(LEGALCUSTOMER)} onPress={() => navigate.navigate(LEGALCUSTOMER)}
style={styles.containerItem}> style={styles.containerItem}>
<Text style={styles.txtTitle}> Tho thun khách hàng</Text> <AppText i18nKey={'CustomerAgreement'} style={styles.txtTitle}>
{' '}
</AppText>
</TouchableOpacity> </TouchableOpacity>
<TouchableOpacity <TouchableOpacity
onPress={() => navigate.navigate(LEGALBUSINESS)} onPress={() => navigate.navigate(LEGALBUSINESS)}
style={styles.containerItem}> style={styles.containerItem}>
<Text style={styles.txtTitle}> Tho thun kinh doanh chung</Text> <AppText i18nKey={'BusinessAgreement'} style={styles.txtTitle}>
{' '}
</AppText>
</TouchableOpacity> </TouchableOpacity>
<TouchableOpacity <TouchableOpacity
onPress={() => navigate.navigate(LEGALPARTNER)} onPress={() => navigate.navigate(LEGALPARTNER)}
style={styles.containerItem}> style={styles.containerItem}>
<Text style={styles.txtTitle}> Tho thun quan h đối tác</Text> <AppText i18nKey={'PartnershipAgreement'} style={styles.txtTitle}>
{' '}
</AppText>
</TouchableOpacity> </TouchableOpacity>
</View> </View>
</View> </View>
......
...@@ -12,6 +12,7 @@ import CQG from './Tab/CQG'; ...@@ -12,6 +12,7 @@ import CQG from './Tab/CQG';
import {createMaterialTopTabNavigator} from '@react-navigation/material-top-tabs'; import {createMaterialTopTabNavigator} from '@react-navigation/material-top-tabs';
import {getFontXD} from '../../../Config/Functions'; import {getFontXD} from '../../../Config/Functions';
const Tab = createMaterialTopTabNavigator(); const Tab = createMaterialTopTabNavigator();
import I18n from '../../../helper/i18/i18n';
const ProfileView = (props) => { const ProfileView = (props) => {
return ( return (
...@@ -29,12 +30,12 @@ const ProfileView = (props) => { ...@@ -29,12 +30,12 @@ const ProfileView = (props) => {
<Tab.Screen <Tab.Screen
name="GeneralInfor" name="GeneralInfor"
component={GeneralInfor} component={GeneralInfor}
options={{tabBarLabel: 'Thông tin chung'}} options={{tabBarLabel: I18n.t('GeneralInformation')}}
/> />
<Tab.Screen <Tab.Screen
name="CQG" name="CQG"
component={CQG} component={CQG}
options={{tabBarLabel: 'Tài khoản CQG'}} options={{tabBarLabel: I18n.t('AccountCQG')}}
/> />
</Tab.Navigator> </Tab.Navigator>
</View> </View>
......
...@@ -2,21 +2,28 @@ import React from 'react'; ...@@ -2,21 +2,28 @@ import React from 'react';
import {View, Text, TouchableOpacity, Image, StyleSheet} from 'react-native'; import {View, Text, TouchableOpacity, Image, StyleSheet} from 'react-native';
import R from '../../../../assets/R'; import R from '../../../../assets/R';
import {getFontXD} from '../../../../Config/Functions'; import {getFontXD} from '../../../../Config/Functions';
import {connect} from 'react-redux';
import AppText from '../../../../components/AppText';
import I18n from '../../../../helper/i18/i18n';
const Profile = (props) => { const Profile = (props) => {
return ( return (
<View style={styles.container}> <View style={styles.container}>
<View style={styles.item}> <View style={styles.item}>
<Text style={styles.txtTitle}>Mã hp đồng</Text> <AppText i18nKey={'ContactCode'} style={styles.txtTitle}></AppText>
<Text style={styles.txtBig}>Network & internet</Text> <Text style={styles.txtBig}>{props.user.cqg_id}</Text>
</View> </View>
<View style={styles.item}> <View style={styles.item}>
<Text style={styles.txtTitle}>Tên tài khon giao dch</Text> <AppText
<Text style={styles.txtBig}>Network & internet</Text> i18nKey={'TraddingAccountName'}
style={styles.txtTitle}></AppText>
<Text style={styles.txtBig}>{props.user.cqg_name}</Text>
</View> </View>
<View style={styles.item}> <View style={styles.item}>
<Text style={styles.txtTitle}>S tài khon giao dch</Text> <AppText
<Text style={styles.txtBig}>0202020202</Text> i18nKey={'TraddingAccountNumber'}
style={styles.txtTitle}></AppText>
<Text style={styles.txtBig}>{props.user.account}</Text>
</View> </View>
</View> </View>
); );
...@@ -46,4 +53,9 @@ const styles = StyleSheet.create({ ...@@ -46,4 +53,9 @@ const styles = StyleSheet.create({
}, },
}); });
export default Profile; const mapStateToProps = (state) => {
return {
user: state.userReducer,
};
};
export default connect(mapStateToProps, {})(Profile);
...@@ -17,7 +17,8 @@ import TextMulti from '../../../../components/Input/TextMulti'; ...@@ -17,7 +17,8 @@ import TextMulti from '../../../../components/Input/TextMulti';
import {connect} from 'react-redux'; import {connect} from 'react-redux';
import {showLoading, hideLoading} from '../../../../actions/loadingAction'; import {showLoading, hideLoading} from '../../../../actions/loadingAction';
import {saveUserToRedux} from '../../../../actions/users'; import {saveUserToRedux} from '../../../../actions/users';
import AppText from '../../../../components/AppText';
import I18n from '../../../../helper/i18/i18n';
import TextField from '../../../../components/Input/TextField'; import TextField from '../../../../components/Input/TextField';
import { import {
getFontXD, getFontXD,
...@@ -64,6 +65,7 @@ const GeneralInfor = (props) => { ...@@ -64,6 +65,7 @@ const GeneralInfor = (props) => {
if (props.user.gender == 1) return 'Nữ'; if (props.user.gender == 1) return 'Nữ';
return 'Nam'; return 'Nam';
}; };
return ( return (
<KeyboardAvoidingView <KeyboardAvoidingView
behavior={Platform.Os === 'ios' ? 'padding' : 'height'} behavior={Platform.Os === 'ios' ? 'padding' : 'height'}
...@@ -74,7 +76,7 @@ const GeneralInfor = (props) => { ...@@ -74,7 +76,7 @@ const GeneralInfor = (props) => {
<View style={styles.container}> <View style={styles.container}>
<View style={styles.wrapItem}> <View style={styles.wrapItem}>
<View style={styles.wrapLeft}> <View style={styles.wrapLeft}>
<Text style={styles.txtTitle}>H và tên</Text> <AppText i18nKey={'Fullname'} style={styles.txtTitle}></AppText>
</View> </View>
<View style={styles.wrapRight}> <View style={styles.wrapRight}>
<Text style={styles.txtTitle}>{props.user.fullname}</Text> <Text style={styles.txtTitle}>{props.user.fullname}</Text>
...@@ -90,7 +92,7 @@ const GeneralInfor = (props) => { ...@@ -90,7 +92,7 @@ const GeneralInfor = (props) => {
</View> </View>
<View style={styles.wrapItem}> <View style={styles.wrapItem}>
<View style={styles.wrapLeft}> <View style={styles.wrapLeft}>
<Text style={styles.txtTitle}>Ngày sinh</Text> <AppText i18nKey={'Birth'} style={styles.txtTitle}></AppText>
</View> </View>
<View style={styles.wrapRight}> <View style={styles.wrapRight}>
<Text style={styles.txtTitle}>{props.user.birthday}</Text> <Text style={styles.txtTitle}>{props.user.birthday}</Text>
...@@ -98,7 +100,7 @@ const GeneralInfor = (props) => { ...@@ -98,7 +100,7 @@ const GeneralInfor = (props) => {
</View> </View>
<View style={styles.wrapItem}> <View style={styles.wrapItem}>
<View style={styles.wrapLeft}> <View style={styles.wrapLeft}>
<Text style={styles.txtTitle}>Gii tính</Text> <AppText i18nKey={'Male'} style={styles.txtTitle}></AppText>
</View> </View>
<View style={styles.wrapRight}> <View style={styles.wrapRight}>
<Text style={styles.txtTitle}>{renderMale()}</Text> <Text style={styles.txtTitle}>{renderMale()}</Text>
...@@ -106,7 +108,7 @@ const GeneralInfor = (props) => { ...@@ -106,7 +108,7 @@ const GeneralInfor = (props) => {
</View> </View>
<View style={styles.wrapItem}> <View style={styles.wrapItem}>
<View style={styles.wrapLeft}> <View style={styles.wrapLeft}>
<Text style={styles.txtTitle}>Trng thái</Text> <AppText i18nKey={'Status'} style={styles.txtTitle}></AppText>
</View> </View>
<View style={styles.wrapRight}> <View style={styles.wrapRight}>
<Text style={styles.txtTitle}> <Text style={styles.txtTitle}>
...@@ -117,7 +119,7 @@ const GeneralInfor = (props) => { ...@@ -117,7 +119,7 @@ const GeneralInfor = (props) => {
</View> </View>
<TextField <TextField
title={'Điện thoại'} title={I18n.t('Phone')}
value={phone} value={phone}
onChangeText={(val) => setPhone(val)} onChangeText={(val) => setPhone(val)}
/> />
...@@ -125,13 +127,15 @@ const GeneralInfor = (props) => { ...@@ -125,13 +127,15 @@ const GeneralInfor = (props) => {
<TextMulti <TextMulti
onChangeText={(val) => setAddress(val)} onChangeText={(val) => setAddress(val)}
value={address} value={address}
title={'Địa chỉ'} title={I18n.t('Address')}
/> />
<View style={{height: 40}} /> <View style={{height: 40}} />
<View style={{justifyContent: 'center', alignItems: 'center'}}> <View style={{justifyContent: 'center', alignItems: 'center'}}>
<TouchableOpacity onPress={onClick} style={styles.btn}> <TouchableOpacity onPress={onClick} style={styles.btn}>
<Text style={styles.txtBtn}>Cp nht</Text> <AppText i18nKey={'Update'} style={styles.txtBtn}>
Cp nht
</AppText>
</TouchableOpacity> </TouchableOpacity>
</View> </View>
</View> </View>
......
...@@ -58,9 +58,7 @@ const NotificaitonView = (props) => { ...@@ -58,9 +58,7 @@ const NotificaitonView = (props) => {
style={[ style={[
styles.txtFillter, styles.txtFillter,
fillter == e.value ? {color: '#1473E6'} : {}, fillter == e.value ? {color: '#1473E6'} : {},
]}> ]}></AppText>
{e.name}
</AppText>
</TouchableOpacity> </TouchableOpacity>
))} ))}
</ScrollView> </ScrollView>
...@@ -73,9 +71,7 @@ const NotificaitonView = (props) => { ...@@ -73,9 +71,7 @@ const NotificaitonView = (props) => {
style={{ style={{
fontSize: 18, fontSize: 18,
fontWeight: 'bold', fontWeight: 'bold',
}}> }}></AppText>
Không có d liu!
</AppText>
</View> </View>
) : ( ) : (
<FlatList <FlatList
......
...@@ -98,9 +98,7 @@ const Drawer = (props) => { ...@@ -98,9 +98,7 @@ const Drawer = (props) => {
key={e.id} key={e.id}
style={styles.containerItem}> style={styles.containerItem}>
<Image source={e.icon} style={styles.imgIcon} /> <Image source={e.icon} style={styles.imgIcon} />
<AppText i18nKey={e.title} style={styles.txtTitle}> <AppText i18nKey={e.title} style={styles.txtTitle}></AppText>
{e.title}
</AppText>
</TouchableOpacity> </TouchableOpacity>
))} ))}
</View> </View>
...@@ -116,9 +114,7 @@ const Drawer = (props) => { ...@@ -116,9 +114,7 @@ const Drawer = (props) => {
}} }}
style={styles.footer}> style={styles.footer}>
<Icon name={'logout'} size={25} color={'#F81515'} /> <Icon name={'logout'} size={25} color={'#F81515'} />
<AppText i18nKey={'Logout'} Logout style={styles.txtTitle}> <AppText i18nKey={'Logout'} Logout style={styles.txtTitle}></AppText>
Đăng xut
</AppText>
</TouchableOpacity> </TouchableOpacity>
</View> </View>
); );
......
...@@ -37,9 +37,7 @@ const HeaderHome = (props) => { ...@@ -37,9 +37,7 @@ const HeaderHome = (props) => {
onPress={() => navigate.goBack()}> onPress={() => navigate.goBack()}>
<Image source={R.images.iconBack} style={styles.imgIcon} /> <Image source={R.images.iconBack} style={styles.imgIcon} />
</TouchableOpacity> </TouchableOpacity>
<AppText i18nKey={title} style={styles.txtTitle}> <AppText i18nKey={title} style={styles.txtTitle}></AppText>
{title}
</AppText>
<View style={{width: 35, height: 30}} /> <View style={{width: 35, height: 30}} />
</View> </View>
</ImageBackground> </ImageBackground>
......
...@@ -43,9 +43,7 @@ const HeaderDrawer = (props) => { ...@@ -43,9 +43,7 @@ const HeaderDrawer = (props) => {
<Image source={R.images.iconMenu} style={styles.imgIcon} /> <Image source={R.images.iconMenu} style={styles.imgIcon} />
</TouchableOpacity> </TouchableOpacity>
<AppText i18nKey={title} style={styles.txtTitle}> <AppText i18nKey={title} style={styles.txtTitle}></AppText>
{title}
</AppText>
<View style={{width: 35, height: 30}} /> <View style={{width: 35, height: 30}} />
</View> </View>
<Modal <Modal
......
...@@ -40,9 +40,7 @@ const renderWallet = (status, current_money, current_cqg_money, contract) => { ...@@ -40,9 +40,7 @@ const renderWallet = (status, current_money, current_cqg_money, contract) => {
return ( return (
<View style={{flex: 1, flexDirection: 'row'}}> <View style={{flex: 1, flexDirection: 'row'}}>
<View style={styles.containerWallet}> <View style={styles.containerWallet}>
<AppText i18nKey={'AccountWallet'} style={styles.txtWallet}> <AppText i18nKey={'AccountWallet'} style={styles.txtWallet}></AppText>
Tài khon ví
</AppText>
<View style={{flexDirection: 'row'}}> <View style={{flexDirection: 'row'}}>
<Text style={styles.txtMoney}> <Text style={styles.txtMoney}>
{current_money == 0 ? 0 : toPriceVnd(current_money)} {current_money == 0 ? 0 : toPriceVnd(current_money)}
...@@ -52,9 +50,7 @@ const renderWallet = (status, current_money, current_cqg_money, contract) => { ...@@ -52,9 +50,7 @@ const renderWallet = (status, current_money, current_cqg_money, contract) => {
</View> </View>
<View style={{width: 1, backgroundColor: '#EDEDF1', height: '100%'}} /> <View style={{width: 1, backgroundColor: '#EDEDF1', height: '100%'}} />
<View style={styles.containerWallet}> <View style={styles.containerWallet}>
<AppText i18nKey={'AccountCQG'} style={styles.txtWallet}> <AppText i18nKey={'AccountCQG'} style={styles.txtWallet}></AppText>
Tài khon CQG
</AppText>
<View style={{flexDirection: 'row'}}> <View style={{flexDirection: 'row'}}>
<Text style={styles.txtMoney}> <Text style={styles.txtMoney}>
{current_cqg_money == 0 ? 0 : toPriceVnd(current_cqg_money)} {current_cqg_money == 0 ? 0 : toPriceVnd(current_cqg_money)}
...@@ -68,9 +64,7 @@ const renderWallet = (status, current_money, current_cqg_money, contract) => { ...@@ -68,9 +64,7 @@ const renderWallet = (status, current_money, current_cqg_money, contract) => {
return ( return (
<View style={{flex: 1, flexDirection: 'row'}}> <View style={{flex: 1, flexDirection: 'row'}}>
<View style={styles.containerWallet}> <View style={styles.containerWallet}>
<AppText i18nKey={'AccountWallet'} style={styles.txtWallet}> <AppText i18nKey={'AccountWallet'} style={styles.txtWallet}></AppText>
Tài khon ví
</AppText>
<View style={{flexDirection: 'row'}}> <View style={{flexDirection: 'row'}}>
<Text style={styles.txtMoney}> <Text style={styles.txtMoney}>
{current_money == 0 ? 0 : toPriceVnd(current_money)} {current_money == 0 ? 0 : toPriceVnd(current_money)}
...@@ -82,9 +76,7 @@ const renderWallet = (status, current_money, current_cqg_money, contract) => { ...@@ -82,9 +76,7 @@ const renderWallet = (status, current_money, current_cqg_money, contract) => {
<View style={styles.containerWallet}> <View style={styles.containerWallet}>
<AppText <AppText
i18nKey={'WaitOpenCQG'} i18nKey={'WaitOpenCQG'}
style={[styles.txtWhite, {color: '#FFB721'}]}> style={[styles.txtWhite, {color: '#FFB721'}]}></AppText>
Ch m TK CQG
</AppText>
</View> </View>
</View> </View>
); );
...@@ -92,9 +84,7 @@ const renderWallet = (status, current_money, current_cqg_money, contract) => { ...@@ -92,9 +84,7 @@ const renderWallet = (status, current_money, current_cqg_money, contract) => {
return ( return (
<View style={{flex: 1, flexDirection: 'row'}}> <View style={{flex: 1, flexDirection: 'row'}}>
<View style={styles.containerWallet}> <View style={styles.containerWallet}>
<AppText i18nKey={'AccountWallet'} style={styles.txtWallet}> <AppText i18nKey={'AccountWallet'} style={styles.txtWallet}></AppText>
Tài khon ví
</AppText>
<View style={{flexDirection: 'row'}}> <View style={{flexDirection: 'row'}}>
<Text style={styles.txtMoney}> <Text style={styles.txtMoney}>
{' '} {' '}
...@@ -111,9 +101,9 @@ const renderWallet = (status, current_money, current_cqg_money, contract) => { ...@@ -111,9 +101,9 @@ const renderWallet = (status, current_money, current_cqg_money, contract) => {
navigate.navigate(PACKETCQG); navigate.navigate(PACKETCQG);
}} }}
style={styles.btn}> style={styles.btn}>
<AppText i18nKey={'OpenAccountCQG'} style={styles.txtWhite}> <AppText
M tài khon CQG i18nKey={'OpenAccountCQG'}
</AppText> style={styles.txtWhite}></AppText>
</TouchableOpacity> </TouchableOpacity>
</View> </View>
</View> </View>
...@@ -137,15 +127,11 @@ const renderWallet = (status, current_money, current_cqg_money, contract) => { ...@@ -137,15 +127,11 @@ const renderWallet = (status, current_money, current_cqg_money, contract) => {
{status == 2 ? ( {status == 2 ? (
<AppText <AppText
i18nKey={'WaitVerification'} i18nKey={'WaitVerification'}
style={{fontSize: getFontXD(52), color: 'white'}}> style={{fontSize: getFontXD(52), color: 'white'}}></AppText>
Ch xác minh
</AppText>
) : ( ) : (
<AppText <AppText
i18nKey={'AccountVerify'} i18nKey={'AccountVerify'}
style={{fontSize: getFontXD(52), color: 'white'}}> style={{fontSize: getFontXD(52), color: 'white'}}></AppText>
Xác minh tài khon
</AppText>
)} )}
</ImageBackground> </ImageBackground>
</TouchableOpacity> </TouchableOpacity>
...@@ -156,21 +142,15 @@ const renderWallet = (status, current_money, current_cqg_money, contract) => { ...@@ -156,21 +142,15 @@ const renderWallet = (status, current_money, current_cqg_money, contract) => {
const renderLabel = (status) => { const renderLabel = (status) => {
if (status == 1) if (status == 1)
return ( return (
<AppText i18nKey={'NotVerified'} style={{color: '#E3434F'}}> <AppText i18nKey={'NotVerified'} style={{color: '#E3434F'}}></AppText>
Chưa xác minh
</AppText>
); );
if (status == 2) if (status == 2)
return ( return <AppText i18nKey={'Verified'} style={{color: '#FFB721'}}></AppText>;
<AppText i18nKey={'Verified'} style={{color: '#FFB721'}}>
Ch xác minh
</AppText>
);
if (status == 3) if (status == 3)
return ( return (
<AppText i18nKey={'WaitVerification'} style={{color: '#17B217'}}> <AppText
Đã xác minh i18nKey={'WaitVerification'}
</AppText> style={{color: '#17B217'}}></AppText>
); );
}; };
......
...@@ -39,9 +39,7 @@ const HeaderHome = (props) => { ...@@ -39,9 +39,7 @@ const HeaderHome = (props) => {
<Image source={R.images.iconMenu} style={styles.imgIcon} /> <Image source={R.images.iconMenu} style={styles.imgIcon} />
</TouchableOpacity> </TouchableOpacity>
<AppText i18nKey={'Account'} style={styles.txtTitle}> <AppText i18nKey={'Account'} style={styles.txtTitle}></AppText>
Tài khon
</AppText>
<View style={styles.imgIcon} /> <View style={styles.imgIcon} />
</View> </View>
<Modal <Modal
......
...@@ -57,9 +57,7 @@ const HeaderSearch = (props) => { ...@@ -57,9 +57,7 @@ const HeaderSearch = (props) => {
value={txtSearch} value={txtSearch}
/> />
) : ( ) : (
<AppText i18nKey={title} style={styles.txtTitle}> <AppText i18nKey={title} style={styles.txtTitle}></AppText>
{title ? title : ''}{' '}
</AppText>
)} )}
<TouchableOpacity onPress={toggleSearch}> <TouchableOpacity onPress={toggleSearch}>
{openSearch ? ( {openSearch ? (
......
...@@ -57,9 +57,7 @@ const HeaderSearch = (props) => { ...@@ -57,9 +57,7 @@ const HeaderSearch = (props) => {
value={txtSearch} value={txtSearch}
/> />
) : ( ) : (
<AppText i18nKey={title} style={styles.txtTitle}> <AppText i18nKey={title} style={styles.txtTitle}></AppText>
{title}
</AppText>
)} )}
<TouchableOpacity onPress={toggleSearch}> <TouchableOpacity onPress={toggleSearch}>
{openSearch ? ( {openSearch ? (
......
...@@ -19,7 +19,7 @@ const InputIcon = (props) => { ...@@ -19,7 +19,7 @@ const InputIcon = (props) => {
<View style={container}> <View style={container}>
<Image source={icon} style={iconImg} /> <Image source={icon} style={iconImg} />
<View style={wrapRight}> <View style={wrapRight}>
<AppText i18nKey={title}>{title}</AppText> <AppText i18nKey={title}> </AppText>
<TextInput <TextInput
maxLength={maxLength} maxLength={maxLength}
autoCapitalize="none" autoCapitalize="none"
......
...@@ -45,7 +45,6 @@ export default { ...@@ -45,7 +45,6 @@ export default {
SendFeedback: 'Send feedback', SendFeedback: 'Send feedback',
GeneralBusiness: 'General business', GeneralBusiness: 'General business',
Customer: 'Customer', Customer: 'Customer',
LegalDocuments: 'Legal documents',
Partnership: 'Partnership', Partnership: 'Partnership',
AddPaymentMethod: 'Add payment method', AddPaymentMethod: 'Add payment method',
DetailMethod: 'Detail method', DetailMethod: 'Detail method',
...@@ -56,4 +55,23 @@ export default { ...@@ -56,4 +55,23 @@ export default {
PriceTable: 'Price table', PriceTable: 'Price table',
Chart: 'Chart', Chart: 'Chart',
Calendar: 'Calendar', Calendar: 'Calendar',
Fullname: 'Full name',
Birth: 'Birth',
Male: 'Male',
Status: 'Status',
Phone: 'Phone',
Address: 'Address',
Update: 'Update',
ContactCode: 'Contact code',
TraddingAccountName: 'Tradding account name',
TraddingAccountNumber: 'Tradding account number',
GeneralInformation: 'General information',
Profile: 'Profile',
CustomerAgreement: 'Customer agreement',
BusinessAgreement: 'Business agreement',
PartnershipAgreement: 'Partnership agreement',
Waiting: 'Waiting',
Success: 'Success',
}; };
...@@ -45,7 +45,6 @@ export default { ...@@ -45,7 +45,6 @@ export default {
SendFeedback: 'Gửi phản hồi', SendFeedback: 'Gửi phản hồi',
GeneralBusiness: 'Kinh doanh chung', GeneralBusiness: 'Kinh doanh chung',
Customer: 'Khách hàng', Customer: 'Khách hàng',
LegalDocuments: 'Giấy tờ pháp lý',
Partnership: 'Quan hệ đối tác', Partnership: 'Quan hệ đối tác',
AddPaymentMethod: 'Thêm phương thức thanh toán', AddPaymentMethod: 'Thêm phương thức thanh toán',
DetailMethod: 'Chi tiết phương thức', DetailMethod: 'Chi tiết phương thức',
...@@ -56,4 +55,19 @@ export default { ...@@ -56,4 +55,19 @@ export default {
PriceTable: 'Bảng giá', PriceTable: 'Bảng giá',
Chart: 'Biểu đồ', Chart: 'Biểu đồ',
Calendar: 'Lịch thị trường', Calendar: 'Lịch thị trường',
Fullname: 'Họ và tên',
Birth: 'Ngày sinh',
Male: 'Giới tính',
Status: 'Trạng thái',
Phone: 'Điện thoại',
Address: 'Địa chỉ',
Update: 'Cập nhật',
ContactCode: 'Mã hợp đồng',
TraddingAccountName: 'Tên tài khoản giao dịch',
TraddingAccountNumber: 'Số tài khoản giao dịch',
GeneralInformation: 'Thông tin chung',
Profile: 'Hồ sơ',
CustomerAgreement: 'Thoả thuận khách hàng',
BusinessAgreement: 'Thoả thuận kinh doanh chung',
PartnershipAgreement: 'Thoả thuận quan hệ đối tác',
}; };
...@@ -54,9 +54,7 @@ const PlussModal = (props) => { ...@@ -54,9 +54,7 @@ const PlussModal = (props) => {
}} }}
style={styles.wraper1}> style={styles.wraper1}>
<Image style={styles.imgIcon} source={R.images.iconWallet1} /> <Image style={styles.imgIcon} source={R.images.iconWallet1} />
<AppText i18nKey={'Wallet'} style={styles.txt}> <AppText i18nKey={'Wallet'} style={styles.txt}></AppText>
Ví tin
</AppText>
</TouchableOpacity> </TouchableOpacity>
<TouchableOpacity <TouchableOpacity
onPress={() => { onPress={() => {
...@@ -65,9 +63,7 @@ const PlussModal = (props) => { ...@@ -65,9 +63,7 @@ const PlussModal = (props) => {
}} }}
style={styles.wraper1}> style={styles.wraper1}>
<Image style={styles.imgIcon} source={R.images.iconRecharge} /> <Image style={styles.imgIcon} source={R.images.iconRecharge} />
<AppText i18nKey={'Deposit'} style={styles.txt}> <AppText i18nKey={'Deposit'} style={styles.txt}></AppText>
Np tin
</AppText>
</TouchableOpacity> </TouchableOpacity>
<TouchableOpacity <TouchableOpacity
onPress={() => { onPress={() => {
...@@ -76,9 +72,7 @@ const PlussModal = (props) => { ...@@ -76,9 +72,7 @@ const PlussModal = (props) => {
}} }}
style={styles.wraper1}> style={styles.wraper1}>
<Image style={styles.imgIcon} source={R.images.iconWithdrawal} /> <Image style={styles.imgIcon} source={R.images.iconWithdrawal} />
<AppText i18nKey={'Withdraw'} style={styles.txt}> <AppText i18nKey={'Withdraw'} style={styles.txt}></AppText>
Rút tin
</AppText>
</TouchableOpacity> </TouchableOpacity>
<TouchableOpacity <TouchableOpacity
onPress={() => { onPress={() => {
...@@ -87,9 +81,7 @@ const PlussModal = (props) => { ...@@ -87,9 +81,7 @@ const PlussModal = (props) => {
}} }}
style={styles.wraper1}> style={styles.wraper1}>
<Image style={styles.imgIcon} source={R.images.iconTransfer} /> <Image style={styles.imgIcon} source={R.images.iconTransfer} />
<AppText i18nKey={'Transfer'} style={styles.txt}> <AppText i18nKey={'Transfer'} style={styles.txt}></AppText>
Chuyn khon
</AppText>
</TouchableOpacity> </TouchableOpacity>
</View> </View>
</View> </View>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment