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
eb37b68a
Commit
eb37b68a
authored
Jun 19, 2020
by
Trisno
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixing button change password
parent
9bb34387
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
ChangePassword.js
view/ChangePassword.js
+7
-7
No files found.
view/ChangePassword.js
View file @
eb37b68a
...
...
@@ -29,7 +29,7 @@ class ChangePassword extends React.Component {
"password"
:
this
.
state
.
Password
,
"password_confirmation"
:
this
.
state
.
Password_confirmation
}
Axios
.
post
(
this
.
props
.
BASE_URL
+
'crm/v2/auth/change_password'
,
params
).
then
(
res
=>
{
Axios
.
post
(
this
.
props
.
BASE_URL
+
'crm/v2/auth/change_password'
,
params
).
then
(
res
=>
{
this
.
props
.
navigation
.
navigate
(
'Profile'
);
Toast
.
show
(
'Ganti Password Berhasil'
)
}).
catch
(
error
=>
{
...
...
@@ -88,8 +88,8 @@ class ChangePassword extends React.Component {
<Button title="Change Password" onPress={() => this.changePassword()}></Button>
</View> */
}
<
TouchableOpacity
onPress
=
{()
=>
this
.
changePassword
()}
>
<
View
style
=
{
styles
.
button
}
>
<
TouchableOpacity
onPress
=
{()
=>
this
.
changePassword
()}
style
=
{
styles
.
button
}
>
<
View
>
<
Text
style
=
{{
color
:
'white'
,
fontSize
:
16
,
fontFamily
:
'Gotham-Black'
}}
>
{
i18n
.
t
(
'changepassword'
)}
<
/Text
>
<
/View
>
<
/TouchableOpacity
>
...
...
@@ -148,10 +148,10 @@ const styles = StyleSheet.create({
button
:
{
backgroundColor
:
'#CFB368'
,
marginTop
:
50
,
marginHorizontal
:
10
0
,
marginHorizontal
:
8
0
,
borderRadius
:
10
,
padding
:
10
,
height
:
40
,
padding
:
10
,
height
:
40
,
alignItems
:
'center'
,
justifyContent
:
'center'
},
...
...
@@ -162,7 +162,7 @@ const mapStateToProps = (state) => {
return
{
session_id
:
state
.
session_id
,
language
:
state
.
language
,
BASE_URL
:
state
.
BASE_URL
BASE_URL
:
state
.
BASE_URL
}
}
...
...
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