Skip to content

Commit

Permalink
build: Disable camera due to iOS build issues
Browse files Browse the repository at this point in the history
  • Loading branch information
dougmartin committed Aug 20, 2024
1 parent 72db4e8 commit 6f05073
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 5 deletions.
5 changes: 5 additions & 0 deletions src/mobile-app/components/uploader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -281,10 +281,15 @@ export const Uploader = (props: IProps) => {
<RunInfoComponent run={props.run} expanded={true} />
</div>
</div>
{/*
NOPHOTO: Removed the photo element due to iOS build issues
<div className={css.modePicker}>
<div className={modeChoiceClassName(UploaderMode.EnterCode)} onClick={handleSelectEnterCodeMode}>{`Enter ${CODE_LENGTH} Digit Code`}</div>
<div className={modeChoiceClassName(UploaderMode.ScanQR)} onClick={handleSelectScanQRMode}>Or Scan QR Code</div>
</div>
*/}
{uploaderMode === UploaderMode.ScanQR ? renderScanQR() : renderEnterCode()}
</div>
</div>
Expand Down
6 changes: 6 additions & 0 deletions src/shared/components/photo-or-note-field.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -397,11 +397,17 @@ export const PhotoOrNoteField: React.FC<FieldProps> = props => {

return (
<div className={css.photoOrNote}>
{/*
NOPHOTO: Removed the photo element due to iOS build issues
<div className={css.subTabs}>
<div className={subTabClassName("photo")} onClick={handleSelectPhotoSubTab}><Icon name="photo" /></div>
<div className={subTabClassName("note")} onClick={handleSelectNoteSubTab}><Icon name="comment" /></div>
</div>
{subTab === "note" ? renderNoteSubTab() : renderPhotoSubTab() }
*/}
{renderNoteSubTab()}
</div>
);
};
17 changes: 12 additions & 5 deletions src/shared/components/section-button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,15 @@ interface IProps {
onClick?: (event: React.MouseEvent) => void;
}

export const SectionButton: React.FC<IProps> = ({ title, icon, active, disabled, onClick }) =>
<div className={classNames(css.sectionButton, {[css.disabled]: disabled})} onClick={disabled ? undefined : onClick}>
<div className={css.icon + (active ? ` ${css.active}` : "")}><Icon name={icon} /></div>
{ title }
</div>;
export const SectionButton: React.FC<IProps> = ({ title, icon, active, disabled, onClick }) => {
// NOPHOTO: Removed the photo element due to iOS build issues
if (title === "Note & Photo") {
title = "Notes";
}
return (
<div className={classNames(css.sectionButton, {[css.disabled]: disabled})} onClick={disabled ? undefined : onClick}>
<div className={css.icon + (active ? ` ${css.active}` : "")}><Icon name={icon} /></div>
{ title }
</div>
);
};

0 comments on commit 6f05073

Please sign in to comment.