From 8bebafbff8da2bba4fc99c4ece834fe6ed210f05 Mon Sep 17 00:00:00 2001 From: Doug Martin Date: Tue, 20 Aug 2024 14:46:30 -0400 Subject: [PATCH] build: Disable camera due to iOS build issues --- src/mobile-app/components/uploader.tsx | 5 +++++ src/shared/components/photo-or-note-field.tsx | 6 ++++++ src/shared/components/section-button.tsx | 17 ++++++++++++----- 3 files changed, 23 insertions(+), 5 deletions(-) diff --git a/src/mobile-app/components/uploader.tsx b/src/mobile-app/components/uploader.tsx index 50afef6..a7b4fc2 100644 --- a/src/mobile-app/components/uploader.tsx +++ b/src/mobile-app/components/uploader.tsx @@ -281,10 +281,15 @@ export const Uploader = (props: IProps) => { + {/* + + NOPHOTO: Removed the photo element due to iOS build issues +
{`Enter ${CODE_LENGTH} Digit Code`}
Or Scan QR Code
+ */} {uploaderMode === UploaderMode.ScanQR ? renderScanQR() : renderEnterCode()} diff --git a/src/shared/components/photo-or-note-field.tsx b/src/shared/components/photo-or-note-field.tsx index 09224e1..64fdf32 100644 --- a/src/shared/components/photo-or-note-field.tsx +++ b/src/shared/components/photo-or-note-field.tsx @@ -397,11 +397,17 @@ export const PhotoOrNoteField: React.FC = props => { return (
+ {/* + + NOPHOTO: Removed the photo element due to iOS build issues +
{subTab === "note" ? renderNoteSubTab() : renderPhotoSubTab() } + */} + {renderNoteSubTab()}
); }; diff --git a/src/shared/components/section-button.tsx b/src/shared/components/section-button.tsx index 72f119e..2d72562 100644 --- a/src/shared/components/section-button.tsx +++ b/src/shared/components/section-button.tsx @@ -11,8 +11,15 @@ interface IProps { onClick?: (event: React.MouseEvent) => void; } -export const SectionButton: React.FC = ({ title, icon, active, disabled, onClick }) => -
-
- { title } -
; +export const SectionButton: React.FC = ({ title, icon, active, disabled, onClick }) => { + // NOPHOTO: Removed the photo element due to iOS build issues + if (title === "Note & Photo") { + title = "Notes"; + } + return ( +
+
+ { title } +
+ ); +};