mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2024-11-19 18:00:17 +01:00
Merge pull request #5762 from BlueWallet/camerats
REF: Camera class to TS
This commit is contained in:
commit
4c0d8a949a
@ -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,
|
Loading…
Reference in New Issue
Block a user