From 4f4fd76d5d675d3d232d3f12a4037f471934f362 Mon Sep 17 00:00:00 2001 From: shrouxm Date: Thu, 11 Jul 2024 12:10:49 -0700 Subject: [PATCH] refactor: rename PermissionsRequest{Modal,Wrapper} --- .../components/inputs/image/ImagePicker.tsx | 26 +++++++++++-------- ...odal.tsx => PermissionsRequestWrapper.tsx} | 18 ++++++------- .../HomeScreen/components/MapSearch.tsx | 12 ++++----- .../screens/SlopeScreen/SlopeMeterScreen.tsx | 12 ++++----- 4 files changed, 36 insertions(+), 32 deletions(-) rename dev-client/src/components/modals/{PermissionsRequestModal.tsx => PermissionsRequestWrapper.tsx} (88%) diff --git a/dev-client/src/components/inputs/image/ImagePicker.tsx b/dev-client/src/components/inputs/image/ImagePicker.tsx index 7ae5e86d6..f061f4d22 100644 --- a/dev-client/src/components/inputs/image/ImagePicker.tsx +++ b/dev-client/src/components/inputs/image/ImagePicker.tsx @@ -37,7 +37,7 @@ import { ModalHandle, ModalTrigger, } from 'terraso-mobile-client/components/modals/Modal'; -import {PermissionsRequestModal} from 'terraso-mobile-client/components/modals/PermissionsRequestModal'; +import {PermissionsRequestWrapper} from 'terraso-mobile-client/components/modals/PermissionsRequestContext'; import {Column} from 'terraso-mobile-client/components/NativeBaseAdapters'; import {OverlaySheet} from 'terraso-mobile-client/components/sheets/OverlaySheet'; @@ -100,10 +100,12 @@ export const ImagePicker = ({ return ( - {onRequestAction => ( )} - + )}