Skip to content

Commit

Permalink
Merge pull request #198 from ugahacks/feature/scanner_hotfix
Browse files Browse the repository at this point in the history
tryna fix scanna
  • Loading branch information
Kasra-G authored Feb 10, 2024
2 parents 9914542 + 367c3e5 commit c50aa9b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions projects/mybyte/pages/qrRead.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -163,16 +163,15 @@ export default function QrRead(props: any) {
} finally {
setStatus(outcomeMessage);
setScannedUID("")
window.alert(outcomeMessage);
}
};
return (
<OrganizerRoute>
<div className={"flex flex-row justify-center items-center space-x-10"}>
<div className={"flex flex-col justify-center items-center space-y-2"}>
<QrReader
className={"w-1/3 h-full"}
videoStyle={{"height": "100%", "width" : "100%"}}
constraints={{facingMode: 'back'}}
constraints={{facingMode: 'rear'}}
scanDelay={0}
onResult={async (result, _) => {
if (!result) return;
Expand Down

0 comments on commit c50aa9b

Please sign in to comment.