Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
C
clone_excelso
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Prasetya Saputra
clone_excelso
Commits
f5e4ebb3
Commit
f5e4ebb3
authored
Jun 18, 2020
by
Trisno
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
translate new password
parent
802be79f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
6 deletions
+11
-6
en.json
lib/en.json
+2
-0
id.json
lib/id.json
+2
-0
Auth.js
view/Auth.js
+1
-1
NewPassword.js
view/NewPassword.js
+6
-5
No files found.
lib/en.json
View file @
f5e4ebb3
...
@@ -25,6 +25,7 @@
...
@@ -25,6 +25,7 @@
"save"
:
"Save"
,
"save"
:
"Save"
,
"currentpassword"
:
"Current Password"
,
"currentpassword"
:
"Current Password"
,
"newpassword"
:
"New Password"
,
"newpassword"
:
"New Password"
,
"headerNewPassword"
:
"NEW PASSWORD"
,
"repeatpassword"
:
"Repeat Password"
,
"repeatpassword"
:
"Repeat Password"
,
"language"
:
"LANGUAGE"
,
"language"
:
"LANGUAGE"
,
"password"
:
"Password"
,
"password"
:
"Password"
,
...
@@ -47,6 +48,7 @@
...
@@ -47,6 +48,7 @@
"cancel"
:
"CANCEL"
,
"cancel"
:
"CANCEL"
,
"resendemail"
:
"RENSEND EMAIL TOKEN"
,
"resendemail"
:
"RENSEND EMAIL TOKEN"
,
"enterToken"
:
"Enter Token"
,
"enterToken"
:
"Enter Token"
,
"token"
:
"Token"
,
"delivery"
:
"DELIVERY"
,
"delivery"
:
"DELIVERY"
,
"pickup"
:
"PICKUP"
,
"pickup"
:
"PICKUP"
,
"orderInfo"
:
"YOU WILL PICKUP YOUR ORDER AT"
,
"orderInfo"
:
"YOU WILL PICKUP YOUR ORDER AT"
,
...
...
lib/id.json
View file @
f5e4ebb3
...
@@ -41,11 +41,13 @@
...
@@ -41,11 +41,13 @@
"detail"
:
"Details"
,
"detail"
:
"Details"
,
"resendemail"
:
"KIRIM ULANG EMAIL TOKEN"
,
"resendemail"
:
"KIRIM ULANG EMAIL TOKEN"
,
"enterToken"
:
"Masukan Token"
,
"enterToken"
:
"Masukan Token"
,
"token"
:
"Token"
,
"delivery"
:
"ANTAR"
,
"delivery"
:
"ANTAR"
,
"pickup"
:
"AMBIL"
,
"pickup"
:
"AMBIL"
,
"changepassword"
:
"GANTI KATA SANDI"
,
"changepassword"
:
"GANTI KATA SANDI"
,
"currentpassword"
:
"Kata sandi lama"
,
"currentpassword"
:
"Kata sandi lama"
,
"newpassword"
:
"Kata sandi baru"
,
"newpassword"
:
"Kata sandi baru"
,
"headerNewPassword"
:
"KATA SANDI BARU"
,
"repeatpassword"
:
"Ulangi Kata sandi"
,
"repeatpassword"
:
"Ulangi Kata sandi"
,
"save"
:
"Simpan"
,
"save"
:
"Simpan"
,
"language"
:
"BAHASA"
,
"language"
:
"BAHASA"
,
...
...
view/Auth.js
View file @
f5e4ebb3
...
@@ -596,7 +596,7 @@ class Auth extends React.Component {
...
@@ -596,7 +596,7 @@ class Auth extends React.Component {
fontFamily
:
'Gotham-Black'
,
fontFamily
:
'Gotham-Black'
,
color
:
'white'
color
:
'white'
},
},
headerTitle
:
'New Password'
headerTitle
:
i18n
.
t
(
'headerNewPassword'
)
}}
/
>
}}
/
>
{
/* <Stack.Screen name="Login" component={Login} /> */
}
{
/* <Stack.Screen name="Login" component={Login} /> */
}
...
...
view/NewPassword.js
View file @
f5e4ebb3
...
@@ -6,6 +6,7 @@ import ActionType from '../redux/globalActionType';
...
@@ -6,6 +6,7 @@ import ActionType from '../redux/globalActionType';
import
{
BASE_URL_NEW_PASSWORD
}
from
'../model/Base_Model'
import
{
BASE_URL_NEW_PASSWORD
}
from
'../model/Base_Model'
import
Spinner
from
'react-native-loading-spinner-overlay'
;
import
Spinner
from
'react-native-loading-spinner-overlay'
;
import
MyStatusBar
from
'./MyStatusBar'
;
import
MyStatusBar
from
'./MyStatusBar'
;
import
i18n
from
'i18n-js'
;
class
NewPassword
extends
React
.
Component
{
class
NewPassword
extends
React
.
Component
{
constructor
(
props
)
{
constructor
(
props
)
{
...
@@ -83,28 +84,28 @@ class NewPassword extends React.Component {
...
@@ -83,28 +84,28 @@ class NewPassword extends React.Component {
/
>
/
>
<
View
style
=
{{
flex
:
3
}}
>
<
View
style
=
{{
flex
:
3
}}
>
<
View
style
=
{{
flex
:
1
,
marginRight
:
30
,
marginLeft
:
30
,
top
:
20
}}
>
<
View
style
=
{{
flex
:
1
,
marginRight
:
30
,
marginLeft
:
30
,
top
:
20
}}
>
<
Text
style
=
{{
fontFamily
:
'Gotham-Black'
,
color
:
'#CFB368'
,
fontSize
:
20
,
textAlign
:
'center'
,
margin
:
3
}}
>
Email
<
/Text
>
<
Text
style
=
{{
fontFamily
:
'Gotham-Black'
,
color
:
'#CFB368'
,
fontSize
:
20
,
textAlign
:
'center'
,
margin
:
3
}}
>
{
i18n
.
t
(
'email'
)}
<
/Text
>
<
Text
style
=
{{
fontFamily
:
'Gotham-Black'
,
color
:
'#838383'
,
fontSize
:
18
,
textAlign
:
'center'
,
margin
:
3
,
marginBottom
:
15
}}
>
{
this
.
props
.
email
}
<
/Text
>
<
Text
style
=
{{
fontFamily
:
'Gotham-Black'
,
color
:
'#838383'
,
fontSize
:
18
,
textAlign
:
'center'
,
margin
:
3
,
marginBottom
:
15
}}
>
{
this
.
props
.
email
}
<
/Text
>
<
Text
style
=
{{
fontFamily
:
'Gotham-Black'
,
color
:
'#CFB368'
,
fontSize
:
20
,
textAlign
:
'center'
,
margin
:
3
}}
>
Token
<
/Text
>
<
Text
style
=
{{
fontFamily
:
'Gotham-Black'
,
color
:
'#CFB368'
,
fontSize
:
20
,
textAlign
:
'center'
,
margin
:
3
}}
>
{
i18n
.
t
(
'token'
)}
<
/Text
>
<
TextInput
style
=
{{
height
:
40
,
borderWidth
:
1
,
padding
:
5
,
margin
:
10
,
borderRadius
:
10
,
borderColor
:
'grey'
,
fontFamily
:
'Gotham-Black'
,
textAlign
:
'center'
,
color
:
'grey'
,
fontWeight
:
'bold'
,
fontSize
:
20
}}
<
TextInput
style
=
{{
height
:
40
,
borderWidth
:
1
,
padding
:
5
,
margin
:
10
,
borderRadius
:
10
,
borderColor
:
'grey'
,
fontFamily
:
'Gotham-Black'
,
textAlign
:
'center'
,
color
:
'grey'
,
fontWeight
:
'bold'
,
fontSize
:
20
}}
onChangeText
=
{(
confirmation_number
)
=>
this
.
setState
({
confirmation_number
})}
onChangeText
=
{(
confirmation_number
)
=>
this
.
setState
({
confirmation_number
})}
value
=
{
this
.
state
.
confirmation_number
}
/
>
value
=
{
this
.
state
.
confirmation_number
}
/
>
<
Text
style
=
{{
fontFamily
:
'Gotham-Black'
,
color
:
'#CFB368'
,
fontSize
:
20
,
textAlign
:
'center'
,
margin
:
3
}}
>
New
Password
<
/Text
>
<
Text
style
=
{{
fontFamily
:
'Gotham-Black'
,
color
:
'#CFB368'
,
fontSize
:
20
,
textAlign
:
'center'
,
margin
:
3
}}
>
{
i18n
.
t
(
'newpassword'
)}
<
/Text
>
<
TextInput
style
=
{{
height
:
40
,
borderWidth
:
1
,
padding
:
5
,
margin
:
10
,
borderRadius
:
10
,
borderColor
:
'grey'
,
fontFamily
:
'Gotham-Black'
,
textAlign
:
'center'
,
color
:
'grey'
,
fontWeight
:
'bold'
,
fontSize
:
20
}}
<
TextInput
style
=
{{
height
:
40
,
borderWidth
:
1
,
padding
:
5
,
margin
:
10
,
borderRadius
:
10
,
borderColor
:
'grey'
,
fontFamily
:
'Gotham-Black'
,
textAlign
:
'center'
,
color
:
'grey'
,
fontWeight
:
'bold'
,
fontSize
:
20
}}
onChangeText
=
{(
password
)
=>
this
.
setState
({
password
})}
onChangeText
=
{(
password
)
=>
this
.
setState
({
password
})}
value
=
{
this
.
state
.
password
}
value
=
{
this
.
state
.
password
}
secureTextEntry
=
{
true
}
/
>
secureTextEntry
=
{
true
}
/
>
<
Text
style
=
{{
fontFamily
:
'Gotham-Black'
,
color
:
'#CFB368'
,
fontSize
:
20
,
textAlign
:
'center'
,
margin
:
3
}}
>
Repeat
Password
<
/Text
>
<
Text
style
=
{{
fontFamily
:
'Gotham-Black'
,
color
:
'#CFB368'
,
fontSize
:
20
,
textAlign
:
'center'
,
margin
:
3
}}
>
{
i18n
.
t
(
'repeatpassword'
)}
<
/Text
>
<
TextInput
style
=
{{
height
:
40
,
borderWidth
:
1
,
padding
:
5
,
margin
:
10
,
borderRadius
:
10
,
borderColor
:
'grey'
,
fontFamily
:
'Gotham-Black'
,
textAlign
:
'center'
,
color
:
'grey'
,
fontWeight
:
'bold'
,
fontSize
:
20
}}
<
TextInput
style
=
{{
height
:
40
,
borderWidth
:
1
,
padding
:
5
,
margin
:
10
,
borderRadius
:
10
,
borderColor
:
'grey'
,
fontFamily
:
'Gotham-Black'
,
textAlign
:
'center'
,
color
:
'grey'
,
fontWeight
:
'bold'
,
fontSize
:
20
}}
onChangeText
=
{(
password_confirmation
)
=>
this
.
setState
({
password_confirmation
})}
onChangeText
=
{(
password_confirmation
)
=>
this
.
setState
({
password_confirmation
})}
value
=
{
this
.
state
.
password_confirmation
}
value
=
{
this
.
state
.
password_confirmation
}
secureTextEntry
=
{
true
}
/
>
secureTextEntry
=
{
true
}
/
>
<
TouchableOpacity
style
=
{{
height
:
100
}}
onPress
=
{()
=>
this
.
handleResetPassword
()}
>
<
TouchableOpacity
style
=
{{
height
:
100
}}
onPress
=
{()
=>
this
.
handleResetPassword
()}
>
<
View
style
=
{{
backgroundColor
:
'#CFB368'
,
height
:
45
,
top
:
20
,
borderRadius
:
10
,
marginRight
:
50
,
marginLeft
:
50
}}
>
<
View
style
=
{{
backgroundColor
:
'#CFB368'
,
height
:
45
,
top
:
20
,
borderRadius
:
10
,
marginRight
:
50
,
marginLeft
:
50
}}
>
<
Text
style
=
{{
alignSelf
:
'center'
,
top
:
10
,
color
:
'white'
,
fontFamily
:
'Gotham-Black'
,
fontSize
:
20
}}
>
SUBMIT
<
/Text
>
<
Text
style
=
{{
alignSelf
:
'center'
,
top
:
10
,
color
:
'white'
,
fontFamily
:
'Gotham-Black'
,
fontSize
:
20
}}
>
{
i18n
.
t
(
'submit'
)}
<
/Text
>
<
/View
>
<
/View
>
<
/TouchableOpacity
>
<
/TouchableOpacity
>
<
/View
>
<
/View
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment