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 ( -