From 8c73fa24b7375e322e5fbb14b0311cea10d0b024 Mon Sep 17 00:00:00 2001 From: ammarahm-ed Date: Wed, 25 Nov 2020 11:46:44 +0500 Subject: [PATCH] feat: change vault password --- .../src/components/Dialog/BaseDialog.js | 3 +- .../src/components/Dialog/DialogButtons.js | 49 ++++-- .../src/components/VaultDialog/index.js | 156 ++++++++++++++---- apps/mobile/src/services/EventManager.js | 15 +- apps/mobile/src/views/Settings/index.js | 62 ++++--- 5 files changed, 200 insertions(+), 85 deletions(-) diff --git a/apps/mobile/src/components/Dialog/BaseDialog.js b/apps/mobile/src/components/Dialog/BaseDialog.js index 57aff4d17..f343b5399 100644 --- a/apps/mobile/src/components/Dialog/BaseDialog.js +++ b/apps/mobile/src/components/Dialog/BaseDialog.js @@ -18,6 +18,7 @@ const BaseDialog = ({ onShow, animation = 'fade', premium, + statusBarTranslucent=true }) => { const [state, dispatch] = useTracked(); const scaleValue = new Animated.Value(1); @@ -27,7 +28,7 @@ const BaseDialog = ({ visible={visible} transparent={true} animated - statusBarTranslucent + statusBarTranslucent={statusBarTranslucent} onShow={() => { if (onShow) { onShow(); diff --git a/apps/mobile/src/components/Dialog/DialogButtons.js b/apps/mobile/src/components/Dialog/DialogButtons.js index b0aabc4c9..bed33e061 100644 --- a/apps/mobile/src/components/Dialog/DialogButtons.js +++ b/apps/mobile/src/components/Dialog/DialogButtons.js @@ -1,5 +1,6 @@ import React from 'react'; -import {StyleSheet, View} from 'react-native'; +import {ActivityIndicator, StyleSheet, View} from 'react-native'; +import {useTracked} from '../../provider'; import {SIZE} from '../../utils/SizeUtils'; import {Button} from '../Button'; @@ -8,28 +9,40 @@ const DialogButtons = ({ onPressNegative, positiveTitle, negativeTitle = 'Cancel', + loading, }) => { + const [state] = useTracked(); + const {colors} = state; + return ( -