From 2ec45e55260dd5dbd3dce60ede2bb291bf0880c3 Mon Sep 17 00:00:00 2001 From: Marcos Rodriguez Velez Date: Sun, 22 Oct 2023 13:04:46 -0400 Subject: [PATCH] REF: Camera class to TS --- class/{camera.js => camera.ts} | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename class/{camera.js => camera.ts} (83%) diff --git a/class/camera.js b/class/camera.ts similarity index 83% rename from class/camera.js rename to class/camera.ts index d6baab180..8e4c53877 100644 --- a/class/camera.js +++ b/class/camera.ts @@ -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,