Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: Disable camera due to iOS build issues #172

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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>
);
};
Loading