Commit 95c37ed1 authored by Trisno's avatar Trisno

add toast when success

parent 68b7aeb4
...@@ -5,6 +5,7 @@ import { BASE_URL_CHANGE_PASSWORD } from '../model/Base_Model'; ...@@ -5,6 +5,7 @@ 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'; import i18n from 'i18n-js';
import Toast from 'react-native-tiny-toast';
class ChangePassword extends React.Component { class ChangePassword extends React.Component {
constructor(props) { constructor(props) {
...@@ -30,6 +31,7 @@ class ChangePassword extends React.Component { ...@@ -30,6 +31,7 @@ class ChangePassword extends React.Component {
} }
Axios.post(BASE_URL_CHANGE_PASSWORD, params).then(res => { Axios.post(BASE_URL_CHANGE_PASSWORD, params).then(res => {
this.props.navigation.navigate('Profile'); this.props.navigation.navigate('Profile');
Toast.show('Ganti Password Berhasil')
}).catch(error => { }).catch(error => {
console.log(error) console.log(error)
let response = error.response.data; let response = error.response.data;
......
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