Skip to content

Commit

Permalink
screens/
Browse files Browse the repository at this point in the history
  • Loading branch information
Bahl-Aryan committed Sep 13, 2024
1 parent 5da87dc commit d81c830
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion screens/AdminScanner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ const AdminScanner: React.FC = () => {
postCheckIn(token, selectedEvent, data)
};

const handleSelectedEvent = (event) => {
setSelectedEvent(event);
}
// mute={true} is used to mute the camera so we dont need mic permissions
// https://github.com/expo/expo/issues/27984 of course it is undocumented <333

Expand All @@ -43,7 +46,7 @@ const AdminScanner: React.FC = () => {
<View style = {styles.cameraContainer}>
{token && (
<View style = {styles.dropdownContainer}>
<EventDropdown token={token} onEventSelect={setSelectedEvent}/>
<EventDropdown token={token} onEventSelect={handleSelectedEvent}/>
</View>
)}
<CameraView
Expand Down

0 comments on commit d81c830

Please sign in to comment.