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
de43f201
Commit
de43f201
authored
Aug 05, 2020
by
Trisno
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixing few bugs
parent
836486de
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
41 additions
and
16 deletions
+41
-16
en.json
lib/en.json
+7
-5
id.json
lib/id.json
+3
-1
AddreesDetail.js
view/AddreesDetail.js
+8
-8
InboxList.js
view/InboxList.js
+1
-1
NewPassword.js
view/NewPassword.js
+22
-1
No files found.
lib/en.json
View file @
de43f201
...
...
@@ -217,11 +217,13 @@
"alertDeleteItemContent"
:
"Are you sure want to delete item ?"
,
"alertSelectOrderFirst"
:
"Please choose your order first"
,
"alertBalanceNotEnoughtWithVooucher"
:
"Rewards cannot be used because the minimum transaction is not enough, let's add your order again"
,
"alertSuccessTransaction"
:
"Transaction successful"
,
"updateVersion"
:
"Please update your application"
,
"upgradePremiumRespon"
:
"We have received your premium upgrade request, please wait 1x24 hours!"
,
"alertSuccessTransaction"
:
"Transaction successful"
,
"updateVersion"
:
"Please update your application"
,
"upgradePremiumRespon"
:
"We have received your premium upgrade request, please wait 1x24 hours!"
,
"signin"
:
"Sign In"
,
"cardActivation"
:
"Card Activation"
,
"headerPrivacyPolicy"
:
"Privacy Policy"
,
"alertTokenResetPassword"
:
"Please insert token"
"headerPrivacyPolicy"
:
"Privacy Policy"
,
"alertTokenResetPassword"
:
"Please insert token"
,
"alertNewPassword"
:
"Please insert new password"
,
"alerConfirmNewPassword"
:
"Please insert confirm password"
}
\ No newline at end of file
lib/id.json
View file @
de43f201
...
...
@@ -223,5 +223,7 @@
"signin"
:
"Masuk"
,
"cardActivation"
:
"Aktivasi Kartu"
,
"headerPrivacyPolicy"
:
"Kebijakan Privasi"
,
"alertTokenResetPassword"
:
"Silahkan masukan token"
"alertTokenResetPassword"
:
"Silahkan masukan token"
,
"alertNewPassword"
:
"Silahkan masukan password baru"
,
"alerConfirmNewPassword"
:
"Silahkan masukan konfirmasi password baru"
}
\ No newline at end of file
view/AddreesDetail.js
View file @
de43f201
...
...
@@ -5,7 +5,7 @@ import * as Location from 'expo-location';
import
*
as
Permissions
from
'expo-permissions'
;
import
i18n
from
'i18n-js'
;
import
React
from
'react'
;
import
{
ActivityIndicator
,
Alert
,
Platform
,
StyleSheet
,
Text
,
TextInput
,
View
}
from
'react-native'
;
import
{
ActivityIndicator
,
Alert
,
Platform
,
StyleSheet
,
Text
,
TextInput
,
View
,
KeyboardAvoidingView
}
from
'react-native'
;
import
{
ScrollView
,
TouchableOpacity
}
from
'react-native-gesture-handler'
;
import
MapView
,
{
PROVIDER_GOOGLE
}
from
'react-native-maps'
;
import
{
connect
}
from
'react-redux'
;
...
...
@@ -219,7 +219,7 @@ class AddreesDetail extends React.Component {
render
()
{
return
(
<
View
style
=
{
styles
.
container
}
>
<
KeyboardAvoidingView
behavior
=
{
Platform
.
OS
==
"ios"
?
40
:
0
}
style
=
{
styles
.
container
}
>
<
ScrollView
>
<
View
style
=
{
styles
.
content
}
>
<
View
style
=
{{
height
:
45
,
borderRadius
:
10
,
borderColor
:
'#ccb46c'
,
borderWidth
:
1
,
flexDirection
:
'row'
,
marginTop
:
15
,
marginLeft
:
10
,
marginRight
:
10
}}
>
...
...
@@ -229,7 +229,7 @@ class AddreesDetail extends React.Component {
<
View
style
=
{{
flex
:
6
}}
>
<
TextInput
style
=
{{
height
:
45
}}
placeholder
=
{
i18n
.
t
(
'findAddress'
)}
caretHidden
=
{
this
.
state
.
caretHidden
}
onFocus
=
{()
=>
this
.
setState
({
caretHidden
:
false
})}
onFocus
=
{()
=>
this
.
setState
({
caretHidden
:
false
})}
onChangeText
=
{(
address
)
=>
this
.
setState
({
address
})}
>
<
/TextInput
>
<
/View
>
...
...
@@ -296,7 +296,7 @@ class AddreesDetail extends React.Component {
<
TextInput
style
=
{{
color
:
'grey'
,
fontFamily
:
'Gotham-Black'
,
height
:
40
,
borderWidth
:
1
,
padding
:
5
,
flex
:
1
,
margin
:
10
,
borderRadius
:
10
,
borderColor
:
'grey'
,
textAlign
:
'center'
}}
onChangeText
=
{(
name
)
=>
this
.
setState
({
name
})}
caretHidden
=
{
this
.
state
.
caretHidden
}
onFocus
=
{()
=>
this
.
setState
({
caretHidden
:
false
})}
/
>
onFocus
=
{()
=>
this
.
setState
({
caretHidden
:
false
})}
/
>
<
/View
>
<
View
style
=
{
styles
.
field_detail_addrees
}
>
...
...
@@ -307,7 +307,7 @@ class AddreesDetail extends React.Component {
numberOfLines
=
{
10
}
multiline
=
{
true
}
caretHidden
=
{
this
.
state
.
caretHidden
}
onFocus
=
{()
=>
this
.
setState
({
caretHidden
:
false
})}
/
>
onFocus
=
{()
=>
this
.
setState
({
caretHidden
:
false
})}
/
>
<
/View
>
<
View
style
=
{{
margin
:
50
,
justifyContent
:
'center'
}}
>
<
TouchableOpacity
onPress
=
{()
=>
this
.
saveAddress
()}
>
...
...
@@ -320,7 +320,7 @@ class AddreesDetail extends React.Component {
<
/View
>
<
/View
>
<
/ScrollView
>
<
/View
>
<
/
KeyboardAvoiding
View
>
)
}
}
...
...
view/InboxList.js
View file @
de43f201
...
...
@@ -57,7 +57,7 @@ class InboxList extends React.Component {
})
Axios
.
post
(
this
.
props
.
BASE_URL
+
'crm/v2/inbox/get_list'
,
params
).
then
(
res
=>
{
let
data
=
res
.
data
.
messages
//
console.log(data)
console
.
log
(
data
)
this
.
setState
({
inbox_list
:
data
,
...
...
view/NewPassword.js
View file @
de43f201
...
...
@@ -15,7 +15,7 @@ class NewPassword extends React.Component {
caretHidden
:
true
,
confirmation_number
:
''
,
email
:
this
.
props
.
email
,
password
:
this
.
props
.
password
,
password
:
''
,
password_confirmation
:
''
,
spinner
:
false
,
}
...
...
@@ -38,6 +38,27 @@ class NewPassword extends React.Component {
i18n
.
t
(
'alertTokenResetPassword'
)
,
)
}
else
if
(
this
.
state
.
password
==
''
)
{
this
.
setState
({
spinner
:
false
,
})
Alert
.
alert
(
''
,
i18n
.
t
(
'alertNewPassword'
)
,
)
}
else
if
(
this
.
state
.
password_confirmation
==
''
)
{
this
.
setState
({
spinner
:
false
,
})
Alert
.
alert
(
''
,
i18n
.
t
(
'alerConfirmNewPassword'
)
,
)
}
else
if
(
this
.
state
.
password
!==
this
.
state
.
password_confirmation
)
{
this
.
setState
({
spinner
:
false
,
...
...
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