Commit 94469839 authored by Wahyu Adjie Prasetyo's avatar Wahyu Adjie Prasetyo

translate change password

parent 9f767326
...@@ -4,6 +4,7 @@ import Axios from 'axios'; ...@@ -4,6 +4,7 @@ import Axios from 'axios';
import { BASE_URL_CHANGE_PASSWORD } from '../model/Base_Model'; import { BASE_URL_CHANGE_PASSWORD } from '../model/Base_Model';
import { connect } from 'react-redux'; import { connect } from 'react-redux';
import MyStatusBar from './MyStatusBar'; import MyStatusBar from './MyStatusBar';
import i18n from 'i18n-js';
class ChangePassword extends React.Component { class ChangePassword extends React.Component {
constructor(props) { constructor(props) {
...@@ -47,7 +48,7 @@ class ChangePassword extends React.Component { ...@@ -47,7 +48,7 @@ class ChangePassword extends React.Component {
<View style={styles.field_token}> <View style={styles.field_token}>
<View style={{ marginBottom: 25 }}> <View style={{ marginBottom: 25 }}>
<Text style={{ fontSize: 12, fontFamily: 'Gotham-Black', color: '#CFB368', textAlign: 'center' }}>Current Password</Text> <Text style={{ fontSize: 12, fontFamily: 'Gotham-Black', color: '#CFB368', textAlign: 'center' }}>{i18n.t('currentpassword')}</Text>
</View> </View>
<View style={styles.items2}> <View style={styles.items2}>
<TextInput style={styles.textInput} <TextInput style={styles.textInput}
...@@ -59,7 +60,7 @@ class ChangePassword extends React.Component { ...@@ -59,7 +60,7 @@ class ChangePassword extends React.Component {
</View> </View>
<View style={styles.field_token}> <View style={styles.field_token}>
<View style={{ marginBottom: 25 }}> <View style={{ marginBottom: 25 }}>
<Text style={{ fontSize: 12, fontFamily: 'Gotham-Black', color: '#CFB368', textAlign: 'center' }}>New Password</Text> <Text style={{ fontSize: 12, fontFamily: 'Gotham-Black', color: '#CFB368', textAlign: 'center' }}>{i18n.t('newpassword')}</Text>
</View> </View>
<View style={styles.items2}> <View style={styles.items2}>
<TextInput style={styles.textInput} <TextInput style={styles.textInput}
...@@ -71,7 +72,7 @@ class ChangePassword extends React.Component { ...@@ -71,7 +72,7 @@ class ChangePassword extends React.Component {
</View> </View>
<View style={styles.field_token}> <View style={styles.field_token}>
<View style={{ marginBottom: 25 }}> <View style={{ marginBottom: 25 }}>
<Text style={{ fontSize: 12, fontFamily: 'Gotham-Black', color: '#CFB368', textAlign: 'center' }}>Repeat Password</Text> <Text style={{ fontSize: 12, fontFamily: 'Gotham-Black', color: '#CFB368', textAlign: 'center' }}>{i18n.t('repeatpassword')}</Text>
</View> </View>
<View style={styles.items2}> <View style={styles.items2}>
<TextInput style={styles.textInput} <TextInput style={styles.textInput}
...@@ -87,7 +88,7 @@ class ChangePassword extends React.Component { ...@@ -87,7 +88,7 @@ class ChangePassword extends React.Component {
<TouchableOpacity onPress={() => this.changePassword()}> <TouchableOpacity onPress={() => this.changePassword()}>
<View style={styles.button}> <View style={styles.button}>
<Text style={{ color: 'white', fontSize: 12, fontFamily: 'Gotham-Black' }}>Change Password</Text> <Text style={{ color: 'white', fontSize: 16, fontFamily: 'Gotham-Black' }}>{i18n.t('changepassword')}</Text>
</View> </View>
</TouchableOpacity> </TouchableOpacity>
</View> </View>
...@@ -146,8 +147,9 @@ const styles = StyleSheet.create({ ...@@ -146,8 +147,9 @@ const styles = StyleSheet.create({
backgroundColor: '#CFB368', backgroundColor: '#CFB368',
marginTop: 50, marginTop: 50,
marginHorizontal: 100, marginHorizontal: 100,
borderRadius: 15, borderRadius: 10,
padding:10, padding:10,
height:40,
alignItems: 'center', alignItems: 'center',
justifyContent: 'center' justifyContent: 'center'
}, },
...@@ -157,6 +159,7 @@ const styles = StyleSheet.create({ ...@@ -157,6 +159,7 @@ const styles = StyleSheet.create({
const mapStateToProps = (state) => { const mapStateToProps = (state) => {
return { return {
session_id: state.session_id, session_id: state.session_id,
language: state.language
} }
} }
......
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