Commit 311d7b2b by Giang Tran

edit ui

parent b7768815
...@@ -912,7 +912,7 @@ ...@@ -912,7 +912,7 @@
); );
INFOPLIST_FILE = Invest/Info.plist; INFOPLIST_FILE = Invest/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
MARKETING_VERSION = 1.6; MARKETING_VERSION = 1.7;
OTHER_LDFLAGS = ( OTHER_LDFLAGS = (
"$(inherited)", "$(inherited)",
"-ObjC", "-ObjC",
...@@ -940,7 +940,7 @@ ...@@ -940,7 +940,7 @@
DEVELOPMENT_TEAM = MXZ24GRH48; DEVELOPMENT_TEAM = MXZ24GRH48;
INFOPLIST_FILE = Invest/Info.plist; INFOPLIST_FILE = Invest/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
MARKETING_VERSION = 1.6; MARKETING_VERSION = 1.7;
OTHER_LDFLAGS = ( OTHER_LDFLAGS = (
"$(inherited)", "$(inherited)",
"-ObjC", "-ObjC",
......
...@@ -91,7 +91,7 @@ const styles = StyleSheet.create({ ...@@ -91,7 +91,7 @@ const styles = StyleSheet.create({
}, },
wrapDate: { wrapDate: {
justifyContent: 'center', justifyContent: 'center',
paddingHorizontal: 10, paddingLeft: 10,
}, },
txt: { txt: {
fontSize: getFontXD(36), fontSize: getFontXD(36),
......
...@@ -81,7 +81,7 @@ const styles = StyleSheet.create({ ...@@ -81,7 +81,7 @@ const styles = StyleSheet.create({
}, },
wrapDate: { wrapDate: {
justifyContent: 'center', justifyContent: 'center',
paddingHorizontal: 10, paddingLeft: 10,
}, },
txtTitle: { txtTitle: {
fontSize: getFontXD(42), fontSize: getFontXD(42),
......
...@@ -38,7 +38,9 @@ const Item = (props) => { ...@@ -38,7 +38,9 @@ const Item = (props) => {
<Text numberOfLines={1} style={styles.txtTitle}> <Text numberOfLines={1} style={styles.txtTitle}>
{item.note} {item.note}
</Text> </Text>
<Text style={styles.txtDate}>`${I18n.t('Date')} ${item.date}`</Text> <Text style={styles.txtDate}>
`${I18n.t('Date')} ${item.date}`
</Text>
</Block> </Block>
</Block> </Block>
</View> </View>
...@@ -76,7 +78,7 @@ const styles = StyleSheet.create({ ...@@ -76,7 +78,7 @@ const styles = StyleSheet.create({
}, },
wrapDate: { wrapDate: {
justifyContent: 'center', justifyContent: 'center',
paddingHorizontal: 10, paddingLeft: 10,
}, },
txtTitle: { txtTitle: {
fontSize: getFontXD(48), fontSize: getFontXD(48),
......
...@@ -89,7 +89,7 @@ const styles = StyleSheet.create({ ...@@ -89,7 +89,7 @@ const styles = StyleSheet.create({
}, },
wrapDate: { wrapDate: {
justifyContent: 'center', justifyContent: 'center',
paddingHorizontal: 10, paddingLeft: 10,
}, },
txt: { txt: {
fontSize: getFontXD(36), fontSize: getFontXD(36),
......
...@@ -37,7 +37,9 @@ const Item = (props) => { ...@@ -37,7 +37,9 @@ const Item = (props) => {
{item.note} {item.note}
</Text> </Text>
</View> </View>
<Text style={styles.txtDate}>`${I18n.t('Date')} ${item.date}`</Text> <Text style={styles.txtDate}>
`${I18n.t('Date')} ${item.date}`
</Text>
</View> </View>
<View> <View>
<Text <Text
...@@ -86,7 +88,7 @@ const styles = StyleSheet.create({ ...@@ -86,7 +88,7 @@ const styles = StyleSheet.create({
}, },
wrapDate: { wrapDate: {
justifyContent: 'center', justifyContent: 'center',
paddingHorizontal: 10, paddingLeft: 10,
}, },
txtTitle: { txtTitle: {
fontSize: getFontXD(42), fontSize: getFontXD(42),
......
...@@ -13,12 +13,6 @@ const Rose = (props) => { ...@@ -13,12 +13,6 @@ const Rose = (props) => {
return ( return (
<View style={{flex: 1}}> <View style={{flex: 1}}>
<HeaderSB title={'Rose'} /> <HeaderSB title={'Rose'} />
<TouchableOpacity onPress={() => props.changeLanguage('en')}>
<Text>Change</Text>
</TouchableOpacity>
<AppText i18nKey={'SetLanguage'}></AppText>
<View style={{justifyContent: 'center', alignItems: 'center', flex: 1}}> <View style={{justifyContent: 'center', alignItems: 'center', flex: 1}}>
<AppText <AppText
i18nKey={'Features_develop'} i18nKey={'Features_develop'}
......
...@@ -20,9 +20,9 @@ const Item = (props) => { ...@@ -20,9 +20,9 @@ const Item = (props) => {
<Text style={styles.txtBig}>{item.title}</Text> <Text style={styles.txtBig}>{item.title}</Text>
<Block space={'between'} row flex={1}> <Block space={'between'} row flex={1}>
<Block> <Block>
<AppText style={styles.txtLeft} i18nKey={('OwnerAccount')}/> <AppText style={styles.txtLeft} i18nKey={'OwnerAccount'} />
<Text style={styles.txtLeft}>STK</Text> <Text style={styles.txtLeft}>STK</Text>
<AppText style={styles.txtLeft} i18nKey={('Branch')}/> <AppText style={styles.txtLeft} i18nKey={'Branch'} />
</Block> </Block>
<Block> <Block>
<Text style={styles.txtRight}>{item.account_name}</Text> <Text style={styles.txtRight}>{item.account_name}</Text>
...@@ -64,7 +64,7 @@ const styles = StyleSheet.create({ ...@@ -64,7 +64,7 @@ const styles = StyleSheet.create({
}, },
wrapDate: { wrapDate: {
justifyContent: 'center', justifyContent: 'center',
paddingHorizontal: 10, paddingLeft: 10,
}, },
txtTitle: { txtTitle: {
fontSize: getFontXD(42), fontSize: getFontXD(42),
......
import React from 'react'; import React from 'react';
import {View, Text, StyleSheet, TouchableOpacity, Image} from 'react-native'; import {View, Text, StyleSheet, TouchableOpacity, Image} from 'react-native';
import {getFontXD, HEIGHTXD, WIDTHXD, toPriceVnd, getWidth} from '../../Config/Functions'; import {
getFontXD,
HEIGHTXD,
WIDTHXD,
toPriceVnd,
getWidth,
} from '../../Config/Functions';
import R from '../../assets/R'; import R from '../../assets/R';
import Block from '../../components/Block'; import Block from '../../components/Block';
import Icon from 'react-native-vector-icons/MaterialCommunityIcons'; import Icon from 'react-native-vector-icons/MaterialCommunityIcons';
...@@ -10,7 +16,11 @@ const Item = (props) => { ...@@ -10,7 +16,11 @@ const Item = (props) => {
const {item} = props; const {item} = props;
return ( return (
<TouchableOpacity onPress={() => props.onPress(item)}> <TouchableOpacity onPress={() => props.onPress(item)}>
<View style={[styles.container, {marginBottom: props.isEndItem ? HEIGHTXD(100) : HEIGHTXD(15)}]}> <View
style={[
styles.container,
{marginBottom: props.isEndItem ? HEIGHTXD(100) : HEIGHTXD(15)},
]}>
<Block flex={1} row center padding={[HEIGHTXD(10), WIDTHXD(10)]}> <Block flex={1} row center padding={[HEIGHTXD(10), WIDTHXD(10)]}>
<Image source={{uri: item.logo}} style={styles.imgIcon} /> <Image source={{uri: item.logo}} style={styles.imgIcon} />
<Block padding={[0, 10]}> <Block padding={[0, 10]}>
...@@ -55,7 +65,7 @@ const styles = StyleSheet.create({ ...@@ -55,7 +65,7 @@ const styles = StyleSheet.create({
}, },
wrapDate: { wrapDate: {
justifyContent: 'center', justifyContent: 'center',
paddingHorizontal: 10, paddingLeft: 10,
}, },
txtTitle: { txtTitle: {
fontSize: getFontXD(42), fontSize: getFontXD(42),
......
...@@ -59,7 +59,7 @@ const styles = StyleSheet.create({ ...@@ -59,7 +59,7 @@ const styles = StyleSheet.create({
}, },
wrapDate: { wrapDate: {
justifyContent: 'center', justifyContent: 'center',
paddingHorizontal: 10, paddingLeft: 10,
}, },
txtTitle: { txtTitle: {
fontSize: getFontXD(42), fontSize: getFontXD(42),
......
...@@ -22,7 +22,6 @@ const Item = (props) => { ...@@ -22,7 +22,6 @@ const Item = (props) => {
<View style={styles.container}> <View style={styles.container}>
<TouchableOpacity onPress={() => props.onPress(item)}> <TouchableOpacity onPress={() => props.onPress(item)}>
<Block flex={1} row> <Block flex={1} row>
<View style={styles.wrapLeft} />
<View style={styles.wrapDate}> <View style={styles.wrapDate}>
<Image source={R.images.iconRecharge} style={styles.imgIcon} /> <Image source={R.images.iconRecharge} style={styles.imgIcon} />
</View> </View>
...@@ -74,7 +73,7 @@ const styles = StyleSheet.create({ ...@@ -74,7 +73,7 @@ const styles = StyleSheet.create({
}, },
wrapDate: { wrapDate: {
justifyContent: 'center', justifyContent: 'center',
paddingHorizontal: 10, paddingLeft: 10,
}, },
txtTitle: { txtTitle: {
fontSize: getFontXD(42), fontSize: getFontXD(42),
......
...@@ -72,7 +72,7 @@ const styles = StyleSheet.create({ ...@@ -72,7 +72,7 @@ const styles = StyleSheet.create({
}, },
wrapDate: { wrapDate: {
justifyContent: 'center', justifyContent: 'center',
paddingHorizontal: 10, paddingLeft: 10,
}, },
txtTitle: { txtTitle: {
fontSize: getFontXD(42), fontSize: getFontXD(42),
......
...@@ -72,7 +72,7 @@ const styles = StyleSheet.create({ ...@@ -72,7 +72,7 @@ const styles = StyleSheet.create({
}, },
wrapDate: { wrapDate: {
justifyContent: 'center', justifyContent: 'center',
paddingHorizontal: 10, paddingLeft: 10,
}, },
txtTitle: { txtTitle: {
fontSize: getFontXD(42), fontSize: getFontXD(42),
......
...@@ -22,7 +22,6 @@ const Item = (props) => { ...@@ -22,7 +22,6 @@ const Item = (props) => {
<View style={styles.container}> <View style={styles.container}>
<TouchableOpacity onPress={() => props.onPress(item)}> <TouchableOpacity onPress={() => props.onPress(item)}>
<Block flex={1} row> <Block flex={1} row>
<View style={styles.wrapLeft} />
<View style={styles.wrapDate}> <View style={styles.wrapDate}>
<Image source={R.images.iconRecharge} style={styles.imgIcon} /> <Image source={R.images.iconRecharge} style={styles.imgIcon} />
</View> </View>
...@@ -74,7 +73,7 @@ const styles = StyleSheet.create({ ...@@ -74,7 +73,7 @@ const styles = StyleSheet.create({
}, },
wrapDate: { wrapDate: {
justifyContent: 'center', justifyContent: 'center',
paddingHorizontal: 10, paddingLeft: 10,
}, },
txtTitle: { txtTitle: {
fontSize: getFontXD(42), fontSize: getFontXD(42),
......
...@@ -106,6 +106,14 @@ const menus = [ ...@@ -106,6 +106,14 @@ const menus = [
icon: R.images.iconHistoryMenu, icon: R.images.iconHistoryMenu,
screen: HISTORY, screen: HISTORY,
}, },
{
id: '65',
title: 'PaymentSetting',
icon: R.images.iconMethodPay,
screen: METHODPAY,
active: false,
children: null,
},
], ],
}, },
{ {
...@@ -137,14 +145,6 @@ const menus = [ ...@@ -137,14 +145,6 @@ const menus = [
}, },
{ {
id: '2',
title: 'PaymentSetting',
icon: R.images.iconMethodPay,
screen: METHODPAY,
active: false,
children: null,
},
{
id: '5', id: '5',
title: 'Setting', title: 'Setting',
icon: R.images.iconSetting, icon: R.images.iconSetting,
......
...@@ -196,7 +196,6 @@ const HeaderHome = (props) => { ...@@ -196,7 +196,6 @@ const HeaderHome = (props) => {
/> />
</TouchableOpacity> </TouchableOpacity>
</View> </View>
{renderLabel(props.user.status)}
</View> </View>
</View> </View>
...@@ -252,7 +251,7 @@ export default connect(mapStateToProps, {})(HeaderHome); ...@@ -252,7 +251,7 @@ export default connect(mapStateToProps, {})(HeaderHome);
const styles = StyleSheet.create({ const styles = StyleSheet.create({
container: {}, container: {},
wrapWallet: { wrapWallet: {
height: 80, height: 70,
width: '100%', width: '100%',
borderBottomWidth: 1, borderBottomWidth: 1,
borderBottomColor: '#EDEDF1', borderBottomColor: '#EDEDF1',
...@@ -266,7 +265,6 @@ const styles = StyleSheet.create({ ...@@ -266,7 +265,6 @@ const styles = StyleSheet.create({
}, },
containerTop: { containerTop: {
backgroundColor: 'white', backgroundColor: 'white',
height: 290,
width: '90%', width: '90%',
borderRadius: 10, borderRadius: 10,
shadowColor: '#000', shadowColor: '#000',
...@@ -296,8 +294,8 @@ const styles = StyleSheet.create({ ...@@ -296,8 +294,8 @@ const styles = StyleSheet.create({
resizeMode: 'contain', resizeMode: 'contain',
}, },
imgIconCopy: { imgIconCopy: {
width: WIDTHXD(134), width: WIDTHXD(100),
height: HEIGHTXD(134), height: HEIGHTXD(100),
resizeMode: 'contain', resizeMode: 'contain',
}, },
...@@ -319,9 +317,9 @@ const styles = StyleSheet.create({ ...@@ -319,9 +317,9 @@ const styles = StyleSheet.create({
color: '#A2A2A2', color: '#A2A2A2',
}, },
imgAvatar: { imgAvatar: {
width: WIDTHXD(240), width: WIDTHXD(180),
height: WIDTHXD(240), height: WIDTHXD(180),
borderRadius: WIDTHXD(120), borderRadius: WIDTHXD(90),
}, },
txtMoney: { txtMoney: {
fontSize: getFontXD(62), fontSize: getFontXD(62),
...@@ -338,7 +336,7 @@ const styles = StyleSheet.create({ ...@@ -338,7 +336,7 @@ const styles = StyleSheet.create({
}, },
wrapRight: { wrapRight: {
flex: 1, flex: 1,
paddingHorizontal: 20, paddingLeft: 10,
}, },
containerInfor: { containerInfor: {
flex: 1, flex: 1,
...@@ -348,6 +346,8 @@ const styles = StyleSheet.create({ ...@@ -348,6 +346,8 @@ const styles = StyleSheet.create({
borderBottomColor: '#EDEDF1', borderBottomColor: '#EDEDF1',
flexDirection: 'row', flexDirection: 'row',
paddingHorizontal: 20, paddingHorizontal: 20,
paddingVertical: 10,
}, },
row: { row: {
flexDirection: 'row', flexDirection: 'row',
...@@ -358,6 +358,7 @@ const styles = StyleSheet.create({ ...@@ -358,6 +358,7 @@ const styles = StyleSheet.create({
flexDirection: 'row', flexDirection: 'row',
justifyContent: 'space-between', justifyContent: 'space-between',
alignItems: 'center', alignItems: 'center',
marginTop: 5,
}, },
containerWallet: { containerWallet: {
justifyContent: 'center', justifyContent: 'center',
......
...@@ -31,7 +31,7 @@ export default { ...@@ -31,7 +31,7 @@ export default {
RevenueDonors: 'Revenue donors', RevenueDonors: 'Revenue donors',
Invset: 'Invest', Invset: 'Invest',
Contract: 'Contract', Contract: 'Contract',
PaymentSetting: 'Payment method setting', PaymentSetting: 'Method setting',
CustomerCare: 'Customer care', CustomerCare: 'Customer care',
Feedback: 'Feedback', Feedback: 'Feedback',
LegalDocument: 'Legal document', LegalDocument: 'Legal document',
......
...@@ -34,7 +34,7 @@ export default { ...@@ -34,7 +34,7 @@ export default {
RevenueDonors: 'Doanh thu nhà tài trợ', RevenueDonors: 'Doanh thu nhà tài trợ',
Invset: 'Đầu tư', Invset: 'Đầu tư',
Contract: 'Hợp đồng', Contract: 'Hợp đồng',
PaymentSetting: 'Cài đặt phương thức thanh toán', PaymentSetting: 'Phương thức thanh toán',
CustomerCare: 'Chăm sóc khách hàng', CustomerCare: 'Chăm sóc khách hàng',
Feedback: 'Phản hồi', Feedback: 'Phản hồi',
LegalDocument: 'Giấy tờ pháp lý', LegalDocument: 'Giấy tờ pháp lý',
......
...@@ -42,10 +42,10 @@ const TabNavigator = (props) => { ...@@ -42,10 +42,10 @@ const TabNavigator = (props) => {
const checkDeepking = () => { const checkDeepking = () => {
Linking.getInitialURL().then((url) => { Linking.getInitialURL().then((url) => {
deeplinkScreen(url); if (url) deeplinkScreen(url);
}); });
Linking.addEventListener('url', (url) => { Linking.addEventListener('url', (url) => {
handleOpenURL(url); if (url) handleOpenURL(url);
}); });
}; };
......
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