mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-11-24 08:55:14 +03:00
created logout ui on sidebar
This commit is contained in:
parent
f77bea5d29
commit
927dcd62aa
@ -88,7 +88,8 @@
|
||||
"schedules": "Schedules",
|
||||
"gallery": "Gallery",
|
||||
"settings": "Settings",
|
||||
"add_account": "Add Account"
|
||||
"add_account": "Add Account",
|
||||
"logout": "Logout"
|
||||
},
|
||||
"header": {
|
||||
"title": "Login to customize your feed",
|
||||
|
@ -88,7 +88,8 @@
|
||||
"schedules": "Yapılacaklar",
|
||||
"gallery": "Galeri",
|
||||
"settings": "Ayarlar",
|
||||
"add_account": "Hesap Ekle"
|
||||
"add_account": "Hesap Ekle",
|
||||
"logout": "Cıkış"
|
||||
},
|
||||
"header": {
|
||||
"title": "Giriş yap ve akışını özelleştir.",
|
||||
|
@ -1,6 +1,7 @@
|
||||
const SCREEN_SUFFIX = 'Screen';
|
||||
const DRAWER_SUFFIX = 'Drawer';
|
||||
const TABBAR_SUFFIX = 'Tabbar';
|
||||
const MODAL_SUFFIX = 'Modal';
|
||||
|
||||
export default {
|
||||
SCREENS: {
|
||||
@ -25,4 +26,7 @@ export default {
|
||||
MESSAGES: `Messages${TABBAR_SUFFIX}`,
|
||||
PROFILE: `Profile${TABBAR_SUFFIX}`,
|
||||
},
|
||||
MODAL: {
|
||||
LOGOUT: `Logout${MODAL_SUFFIX}`,
|
||||
},
|
||||
};
|
||||
|
@ -43,6 +43,12 @@ const authMenuItems = [
|
||||
icon: 'gear',
|
||||
id: 'settings',
|
||||
},
|
||||
{
|
||||
name: 'Logout',
|
||||
route: ROUTES.MODAL.LOGOUT,
|
||||
icon: 'sign-out',
|
||||
id: 'logout',
|
||||
},
|
||||
];
|
||||
|
||||
const noAuthMenuItems = [
|
||||
|
@ -110,7 +110,7 @@ class ApplicationContainer extends Component {
|
||||
dispatch(login());
|
||||
|
||||
const realmObject = realmData.filter(data => data.username === currentUsername);
|
||||
accountData.local = realmObject;
|
||||
accountData.local = realmObject[0];
|
||||
|
||||
dispatch(updateCurrentAccount(accountData));
|
||||
// If in dev mode pin code does not show
|
||||
|
@ -8,7 +8,10 @@ import { setUserDataWithPinCode, verifyPinCode } from '../../../providers/steem/
|
||||
// Actions & Services
|
||||
import { closePinCodeModal } from '../../../redux/actions/applicationActions';
|
||||
import {
|
||||
getExistUser, setExistUser, getUserData, getUserDataWithUsername,
|
||||
getExistUser,
|
||||
setExistUser,
|
||||
getUserData,
|
||||
getUserDataWithUsername,
|
||||
} from '../../../realm/realm';
|
||||
import { updateCurrentAccount } from '../../../redux/actions/accountAction';
|
||||
import { formatAccount } from '../../../utils/user';
|
||||
@ -113,7 +116,7 @@ class PinCodeContainer extends Component {
|
||||
};
|
||||
setUserDataWithPinCode(pinData).then((response) => {
|
||||
const _currentAccount = currentAccount;
|
||||
_currentAccount.local = response;
|
||||
_currentAccount.local = response[0];
|
||||
|
||||
dispatch(updateCurrentAccount({ ..._currentAccount }));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user