Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
N
new_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
new_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
Hide 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 @@
...
@@ -217,11 +217,13 @@
"alertDeleteItemContent"
:
"Are you sure want to delete item ?"
,
"alertDeleteItemContent"
:
"Are you sure want to delete item ?"
,
"alertSelectOrderFirst"
:
"Please choose your order first"
,
"alertSelectOrderFirst"
:
"Please choose your order first"
,
"alertBalanceNotEnoughtWithVooucher"
:
"Rewards cannot be used because the minimum transaction is not enough, let's add your order again"
,
"alertBalanceNotEnoughtWithVooucher"
:
"Rewards cannot be used because the minimum transaction is not enough, let's add your order again"
,
"alertSuccessTransaction"
:
"Transaction successful"
,
"alertSuccessTransaction"
:
"Transaction successful"
,
"updateVersion"
:
"Please update your application"
,
"updateVersion"
:
"Please update your application"
,
"upgradePremiumRespon"
:
"We have received your premium upgrade request, please wait 1x24 hours!"
,
"upgradePremiumRespon"
:
"We have received your premium upgrade request, please wait 1x24 hours!"
,
"signin"
:
"Sign In"
,
"signin"
:
"Sign In"
,
"cardActivation"
:
"Card Activation"
,
"cardActivation"
:
"Card Activation"
,
"headerPrivacyPolicy"
:
"Privacy Policy"
,
"headerPrivacyPolicy"
:
"Privacy Policy"
,
"alertTokenResetPassword"
:
"Please insert token"
"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 @@
...
@@ -223,5 +223,7 @@
"signin"
:
"Masuk"
,
"signin"
:
"Masuk"
,
"cardActivation"
:
"Aktivasi Kartu"
,
"cardActivation"
:
"Aktivasi Kartu"
,
"headerPrivacyPolicy"
:
"Kebijakan Privasi"
,
"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';
...
@@ -5,7 +5,7 @@ import * as Location from 'expo-location';
import
*
as
Permissions
from
'expo-permissions'
;
import
*
as
Permissions
from
'expo-permissions'
;
import
i18n
from
'i18n-js'
;
import
i18n
from
'i18n-js'
;
import
React
from
'react'
;
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
{
ScrollView
,
TouchableOpacity
}
from
'react-native-gesture-handler'
;
import
MapView
,
{
PROVIDER_GOOGLE
}
from
'react-native-maps'
;
import
MapView
,
{
PROVIDER_GOOGLE
}
from
'react-native-maps'
;
import
{
connect
}
from
'react-redux'
;
import
{
connect
}
from
'react-redux'
;
...
@@ -219,7 +219,7 @@ class AddreesDetail extends React.Component {
...
@@ -219,7 +219,7 @@ class AddreesDetail extends React.Component {
render
()
{
render
()
{
return
(
return
(
<
View
style
=
{
styles
.
container
}
>
<
KeyboardAvoidingView
behavior
=
{
Platform
.
OS
==
"ios"
?
40
:
0
}
style
=
{
styles
.
container
}
>
<
ScrollView
>
<
ScrollView
>
<
View
style
=
{
styles
.
content
}
>
<
View
style
=
{
styles
.
content
}
>
<
View
style
=
{{
height
:
45
,
borderRadius
:
10
,
borderColor
:
'#ccb46c'
,
borderWidth
:
1
,
flexDirection
:
'row'
,
marginTop
:
15
,
marginLeft
:
10
,
marginRight
:
10
}}
>
<
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 {
...
@@ -229,7 +229,7 @@ class AddreesDetail extends React.Component {
<
View
style
=
{{
flex
:
6
}}
>
<
View
style
=
{{
flex
:
6
}}
>
<
TextInput
style
=
{{
height
:
45
}}
placeholder
=
{
i18n
.
t
(
'findAddress'
)}
<
TextInput
style
=
{{
height
:
45
}}
placeholder
=
{
i18n
.
t
(
'findAddress'
)}
caretHidden
=
{
this
.
state
.
caretHidden
}
caretHidden
=
{
this
.
state
.
caretHidden
}
onFocus
=
{()
=>
this
.
setState
({
caretHidden
:
false
})}
onFocus
=
{()
=>
this
.
setState
({
caretHidden
:
false
})}
onChangeText
=
{(
address
)
=>
this
.
setState
({
address
})}
>
onChangeText
=
{(
address
)
=>
this
.
setState
({
address
})}
>
<
/TextInput
>
<
/TextInput
>
<
/View
>
<
/View
>
...
@@ -294,9 +294,9 @@ class AddreesDetail extends React.Component {
...
@@ -294,9 +294,9 @@ class AddreesDetail extends React.Component {
<
View
style
=
{
styles
.
field_name_addrees
}
>
<
View
style
=
{
styles
.
field_name_addrees
}
>
<
Text
style
=
{{
fontFamily
:
'Gotham-Black'
,
color
:
"#ccb46c"
,
textAlign
:
'center'
,
fontSize
:
18
}}
>
{
i18n
.
t
(
'label'
)}
<
/Text
>
<
Text
style
=
{{
fontFamily
:
'Gotham-Black'
,
color
:
"#ccb46c"
,
textAlign
:
'center'
,
fontSize
:
18
}}
>
{
i18n
.
t
(
'label'
)}
<
/Text
>
<
TextInput
style
=
{{
color
:
'grey'
,
fontFamily
:
'Gotham-Black'
,
height
:
40
,
borderWidth
:
1
,
padding
:
5
,
flex
:
1
,
margin
:
10
,
borderRadius
:
10
,
borderColor
:
'grey'
,
textAlign
:
'center'
}}
<
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
})}
onChangeText
=
{(
name
)
=>
this
.
setState
({
name
})}
caretHidden
=
{
this
.
state
.
caretHidden
}
caretHidden
=
{
this
.
state
.
caretHidden
}
onFocus
=
{()
=>
this
.
setState
({
caretHidden
:
false
})}
/
>
onFocus
=
{()
=>
this
.
setState
({
caretHidden
:
false
})}
/
>
<
/View
>
<
/View
>
<
View
style
=
{
styles
.
field_detail_addrees
}
>
<
View
style
=
{
styles
.
field_detail_addrees
}
>
...
@@ -307,7 +307,7 @@ class AddreesDetail extends React.Component {
...
@@ -307,7 +307,7 @@ class AddreesDetail extends React.Component {
numberOfLines
=
{
10
}
numberOfLines
=
{
10
}
multiline
=
{
true
}
multiline
=
{
true
}
caretHidden
=
{
this
.
state
.
caretHidden
}
caretHidden
=
{
this
.
state
.
caretHidden
}
onFocus
=
{()
=>
this
.
setState
({
caretHidden
:
false
})}
/
>
onFocus
=
{()
=>
this
.
setState
({
caretHidden
:
false
})}
/
>
<
/View
>
<
/View
>
<
View
style
=
{{
margin
:
50
,
justifyContent
:
'center'
}}
>
<
View
style
=
{{
margin
:
50
,
justifyContent
:
'center'
}}
>
<
TouchableOpacity
onPress
=
{()
=>
this
.
saveAddress
()}
>
<
TouchableOpacity
onPress
=
{()
=>
this
.
saveAddress
()}
>
...
@@ -320,7 +320,7 @@ class AddreesDetail extends React.Component {
...
@@ -320,7 +320,7 @@ class AddreesDetail extends React.Component {
<
/View
>
<
/View
>
<
/View
>
<
/View
>
<
/ScrollView
>
<
/ScrollView
>
<
/View
>
<
/
KeyboardAvoiding
View
>
)
)
}
}
}
}
...
...
view/InboxList.js
View file @
de43f201
...
@@ -57,7 +57,7 @@ class InboxList extends React.Component {
...
@@ -57,7 +57,7 @@ class InboxList extends React.Component {
})
})
Axios
.
post
(
this
.
props
.
BASE_URL
+
'crm/v2/inbox/get_list'
,
params
).
then
(
res
=>
{
Axios
.
post
(
this
.
props
.
BASE_URL
+
'crm/v2/inbox/get_list'
,
params
).
then
(
res
=>
{
let
data
=
res
.
data
.
messages
let
data
=
res
.
data
.
messages
//
console.log(data)
console
.
log
(
data
)
this
.
setState
({
this
.
setState
({
inbox_list
:
data
,
inbox_list
:
data
,
...
...
view/NewPassword.js
View file @
de43f201
...
@@ -15,7 +15,7 @@ class NewPassword extends React.Component {
...
@@ -15,7 +15,7 @@ class NewPassword extends React.Component {
caretHidden
:
true
,
caretHidden
:
true
,
confirmation_number
:
''
,
confirmation_number
:
''
,
email
:
this
.
props
.
email
,
email
:
this
.
props
.
email
,
password
:
this
.
props
.
password
,
password
:
''
,
password_confirmation
:
''
,
password_confirmation
:
''
,
spinner
:
false
,
spinner
:
false
,
}
}
...
@@ -38,6 +38,27 @@ class NewPassword extends React.Component {
...
@@ -38,6 +38,27 @@ class NewPassword extends React.Component {
i18n
.
t
(
'alertTokenResetPassword'
)
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
)
{
}
else
if
(
this
.
state
.
password
!==
this
.
state
.
password_confirmation
)
{
this
.
setState
({
this
.
setState
({
spinner
:
false
,
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