Merge pull request #5762 from BlueWallet/camerats

REF: Camera class to TS
This commit is contained in:
GLaDOS 2023-10-22 19:20:41 +01:00 committed by GitHub
commit 4c0d8a949a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,7 +2,7 @@ import { Linking, Alert } from 'react-native';
import { getSystemName } from 'react-native-device-info';
import loc from '../loc';
const isDesktop = getSystemName() === 'Mac OS X';
const isDesktop: boolean = getSystemName() === 'Mac OS X';
export const openPrivacyDesktopSettings = () => {
if (isDesktop) {
@ -12,7 +12,7 @@ export const openPrivacyDesktopSettings = () => {
}
};
export const presentCameraNotAuthorizedAlert = error => {
export const presentCameraNotAuthorizedAlert = (error: string) => {
Alert.alert(
loc.errors.error,
error,