diff --git a/android/app/src/main/java/com/avapp/phoneStateBroadcastReceiver/PhoneStateModule.java b/android/app/src/main/java/com/avapp/phoneStateBroadcastReceiver/PhoneStateModule.java index 3ef44209..b670b240 100644 --- a/android/app/src/main/java/com/avapp/phoneStateBroadcastReceiver/PhoneStateModule.java +++ b/android/app/src/main/java/com/avapp/phoneStateBroadcastReceiver/PhoneStateModule.java @@ -34,6 +34,11 @@ public class PhoneStateModule extends ReactContextBaseJavaModule { @ReactMethod public void getCurrentCallState(Promise promise) { + if (telephonyManager == null) { + promise.resolve("UNKNOWN"); + return; + } + int state = telephonyManager.getCallState(); String currentCallState; diff --git a/src/screens/caseDetails/CallingFlow/BottomSheets/CallCannotInitiateBottomSheet.tsx b/src/screens/caseDetails/CallingFlow/BottomSheets/CallCannotInitiateBottomSheet.tsx index fa6e11e6..a6b0358e 100644 --- a/src/screens/caseDetails/CallingFlow/BottomSheets/CallCannotInitiateBottomSheet.tsx +++ b/src/screens/caseDetails/CallingFlow/BottomSheets/CallCannotInitiateBottomSheet.tsx @@ -49,7 +49,7 @@ const CallCannotInitiateBottomSheet = () => { > - + Call cannot be initiated! There is already an ongoing call with Abhinav on{' '} @@ -90,6 +90,10 @@ const styles = StyleSheet.create({ fontSize: 12, fontWeight: '500', }, + container: { + paddingHorizontal: 30, + paddingTop: 24, + }, }); export default CallCannotInitiateBottomSheet; diff --git a/src/screens/caseDetails/CallingFlow/BottomSheets/ConnectingToCustomerBottomSheet.tsx b/src/screens/caseDetails/CallingFlow/BottomSheets/ConnectingToCustomerBottomSheet.tsx index 19f596e4..aa467887 100644 --- a/src/screens/caseDetails/CallingFlow/BottomSheets/ConnectingToCustomerBottomSheet.tsx +++ b/src/screens/caseDetails/CallingFlow/BottomSheets/ConnectingToCustomerBottomSheet.tsx @@ -59,7 +59,7 @@ const ConnectingToCustomerBottomSheet = (props: IConnectingToCustomerBottomSheet > - + Connecting you with the customer... You will receive a call from NAVI. Post this a call will go to{' '} @@ -99,6 +99,10 @@ const styles = StyleSheet.create({ fontSize: 12, fontWeight: '500', }, + container: { + paddingHorizontal: 52, + paddingTop: 24, + }, }); export default ConnectingToCustomerBottomSheet; diff --git a/src/screens/caseDetails/CallingFlow/CustomerNumbers/index.tsx b/src/screens/caseDetails/CallingFlow/CustomerNumbers/index.tsx index 5ae23de7..22f1bb2c 100644 --- a/src/screens/caseDetails/CallingFlow/CustomerNumbers/index.tsx +++ b/src/screens/caseDetails/CallingFlow/CustomerNumbers/index.tsx @@ -97,7 +97,7 @@ const CustomerNumbers = (props: ICustomerNumbers) => { Add new number {mobileNumbers.map((number) => ( - + ))} diff --git a/src/screens/registerPayements/Constants.ts b/src/screens/registerPayements/Constants.ts index be85c66f..386d2905 100644 --- a/src/screens/registerPayements/Constants.ts +++ b/src/screens/registerPayements/Constants.ts @@ -1,4 +1,4 @@ -export const paymentLinkChannels = [ +export const PAYMENT_LINK_CHANNELS = [ { type: 'SMS', value: 'SMS' }, { type: 'Whatsapp', value: 'WHATSAPP' }, { type: 'Both', value: 'Both' }, diff --git a/src/screens/registerPayements/Foreclosure.tsx b/src/screens/registerPayements/Foreclosure.tsx index 65c4d776..a146d9e2 100644 --- a/src/screens/registerPayements/Foreclosure.tsx +++ b/src/screens/registerPayements/Foreclosure.tsx @@ -32,7 +32,7 @@ import ForeclosureBottomSheet from './ForeclosureBottomSheet'; import ForeclosureBreakupAccordion, { IForeclosureBreakup } from './ForeclosureBreakupAccordion'; import DropDownWrapper from '../../common/DropDownWrapper'; import { ITelephoneNumbers } from '@reducers/telephoneNumbersSlice'; -import { paymentLinkChannels } from './Constants'; +import { PAYMENT_LINK_CHANNELS } from './Constants'; import PressableChip from '@rn-ui-lib/components/PressableChip'; interface IForeclosure { @@ -113,6 +113,7 @@ const Foreclosure: React.FC = ({ caseId, numbers, primaryPhoneNumb const { createdAt, sourceText, referenceId } = phoneNumber; return ( = ({ caseId, numbers, primaryPhoneNumb /> Send on - {paymentLinkChannels?.map((data, index) => ( + {PAYMENT_LINK_CHANNELS?.map((data, index) => ( = ({ Send on - {paymentLinkChannels?.map((data, index) => ( + {PAYMENT_LINK_CHANNELS?.map((data, index) => (