TP-35981 | fixes
This commit is contained in:
3
App.tsx
3
App.tsx
@@ -32,9 +32,8 @@ import CodePush from 'react-native-code-push';
|
||||
import { TDocumentObj } from './src/screens/caseDetails/interface';
|
||||
import AuthRouter from './src/screens/auth/AuthRouter';
|
||||
import { initSentry } from './src/components/utlis/sentry';
|
||||
import { GLOBAL, setGlobalBuildConfig, setGlobalBuildFlavour } from './src/constants/Global';
|
||||
import { setGlobalBuildConfig, setGlobalBuildFlavour } from './src/constants/Global';
|
||||
import { getBuildFlavour, getBuildInfo } from './src/components/utlis/DeviceUtils';
|
||||
import { get } from 'react-hook-form';
|
||||
|
||||
initSentry();
|
||||
|
||||
|
||||
@@ -124,16 +124,16 @@ const BlockerScreen = (props: IBlockerScreen) => {
|
||||
);
|
||||
}
|
||||
|
||||
// if (!isTimeSynced) {
|
||||
// const { heading, instructions } = BLOCKER_SCREEN_DATA.TIME_UNSYNC;
|
||||
// return (
|
||||
// <BlockerInstructions
|
||||
// heading={heading}
|
||||
// instructions={instructions}
|
||||
// actionBtn={{ title: 'Go to settings', action: handleOpenSettings }}
|
||||
// />
|
||||
// );
|
||||
// }
|
||||
if (!isTimeSynced) {
|
||||
const { heading, instructions } = BLOCKER_SCREEN_DATA.TIME_UNSYNC;
|
||||
return (
|
||||
<BlockerInstructions
|
||||
heading={heading}
|
||||
instructions={instructions}
|
||||
actionBtn={{ title: 'Go to settings', action: handleOpenSettings }}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
if (!isDeviceLocationEnabled) {
|
||||
const { heading, instructions } = BLOCKER_SCREEN_DATA.DEVICE_LOCATION_OFF;
|
||||
|
||||
@@ -221,11 +221,6 @@ const useFirestoreUpdates = () => {
|
||||
|
||||
const subscribeToAppUpdate = () => {
|
||||
const collectionPath = 'app-state/app-update';
|
||||
console.log(
|
||||
'subscribeToAppUpdate',
|
||||
collectionPath,
|
||||
subscribeToDoc(handleAppUpdate, collectionPath)
|
||||
);
|
||||
return subscribeToDoc(handleAppUpdate, collectionPath);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user