Commit 8639e704 authored by Fred's avatar Fred

Merge branch 'master' of ssh://repo.cs.co.id:2222/wahyu/bahanoprek

# Please enter a commit message to explain why this merge is necessary,
# especially if it merges an updated upstream into a topic branch.
#
# Lines starting with '#' will be ignored, and an empty message aborts
# the commit.
parents adafa659 409c57e0
...@@ -89,7 +89,7 @@ ...@@ -89,7 +89,7 @@
"addaddress": "Add Address", "addaddress": "Add Address",
"label": "Label", "label": "Label",
"selectaddress": "SELECT", "selectaddress": "SELECT",
"detail": "Details", "completeaddress": "Complete address",
"Transferbalance": "TRANSFER BALANCE", "Transferbalance": "TRANSFER BALANCE",
"Transactionhistory": "TRANSACTION HISTORY", "Transactionhistory": "TRANSACTION HISTORY",
"Renewal": "RENEWAL", "Renewal": "RENEWAL",
...@@ -228,5 +228,6 @@ ...@@ -228,5 +228,6 @@
"alerConfirmNewPassword": "Password confirmation field is required!", "alerConfirmNewPassword": "Password confirmation field is required!",
"alertLabelAddress": "Label field is required", "alertLabelAddress": "Label field is required",
"alertDetailAddress": "Detail field is required", "alertDetailAddress": "Detail field is required",
"alertVoucher":"Voucher cannot be used with point" "alertVoucher":"Voucher cannot be used with point",
"alertemailblank":"Email cannot be empty"
} }
\ No newline at end of file
...@@ -89,7 +89,7 @@ ...@@ -89,7 +89,7 @@
"addaddress": "Tambah Alamat", "addaddress": "Tambah Alamat",
"label": "Label", "label": "Label",
"selectaddress": "PILIH", "selectaddress": "PILIH",
"detail": "Detail", "completeaddress":"Alamat lengkap",
"Transferbalance": "TRANSFER SALDO", "Transferbalance": "TRANSFER SALDO",
"Transactionhistory": "RIWAYAT TRANSAKSI", "Transactionhistory": "RIWAYAT TRANSAKSI",
"Renewal": "RENEWAL", "Renewal": "RENEWAL",
...@@ -228,5 +228,6 @@ ...@@ -228,5 +228,6 @@
"alerConfirmNewPassword": "Konfirmasi password harus diisi!", "alerConfirmNewPassword": "Konfirmasi password harus diisi!",
"alertLabelAddress": "Nama alamat harus diisi!", "alertLabelAddress": "Nama alamat harus diisi!",
"alertDetailAddress": "Detail alamat harus diisi!", "alertDetailAddress": "Detail alamat harus diisi!",
"alertVoucher":"Voucher tidak bisa digunakan dengan point" "alertVoucher":"Voucher tidak bisa digunakan dengan point",
"alertemailblank":"Email tidak boleh kosong"
} }
\ No newline at end of file
...@@ -700,7 +700,7 @@ class Auth extends React.Component { ...@@ -700,7 +700,7 @@ class Auth extends React.Component {
fontFamily: 'Gotham-Black', fontFamily: 'Gotham-Black',
color: 'white' color: 'white'
}, },
headerTitle: 'CHANGE EMAIL' headerTitle: i18n.t('changeEmail')
}} /> }} />
{/* <Stack.Screen name="Card Activation" component={CardActivation} /> */} {/* <Stack.Screen name="Card Activation" component={CardActivation} /> */}
......
...@@ -19,6 +19,9 @@ class ChangeEmail extends React.Component { ...@@ -19,6 +19,9 @@ class ChangeEmail extends React.Component {
} }
changeEmail() { changeEmail() {
if (this.state.email=="") {
Alert.alert("",i18n.t('alertemailblank'));
} else {
this.setState({ this.setState({
spinner: true, spinner: true,
}) })
...@@ -40,6 +43,7 @@ class ChangeEmail extends React.Component { ...@@ -40,6 +43,7 @@ class ChangeEmail extends React.Component {
this.props.setChangeEmail(loginProps) this.props.setChangeEmail(loginProps)
this.props.setEmailConfirm(emailConfirmProps) this.props.setEmailConfirm(emailConfirmProps)
Alert.alert( Alert.alert(
'', '',
i18n.t('alertCheckEmail'), i18n.t('alertCheckEmail'),
...@@ -70,6 +74,8 @@ class ChangeEmail extends React.Component { ...@@ -70,6 +74,8 @@ class ChangeEmail extends React.Component {
}) })
} }
}
render() { render() {
return ( return (
<View style={styles.container}> <View style={styles.container}>
......
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