Skip to content

Commit

Permalink
fixed: checkin event
Browse files Browse the repository at this point in the history
  • Loading branch information
jaroonro committed Jul 24, 2024
1 parent 1023c42 commit ac94e51
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/components/rpkm/staff/home/qrscanner/QRScanner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,10 @@ import FailureModal from './failureModal';
import { createCheckIn } from '@/utils/checkin';
import { CheckIn } from '@/types/checkIn';
import dayjs from 'dayjs';
interface ScanProp{
event: string
interface ScanProp {
event: string;
}
const Scan: React.FC<ScanProp> = ({
event
}) => {
const Scan: React.FC<ScanProp> = ({ event }) => {
const [checkInData, setCheckInData] = useState<CheckIn | null>(null);
const [taken, setTaken] = useState<boolean>(false);
const [status, setStatus] = useState<'success' | 'error' | 'idle'>('idle');
Expand Down Expand Up @@ -102,6 +100,6 @@ const Scan: React.FC<ScanProp> = ({
</div>
</div>
);
}
};

export default Scan;

0 comments on commit ac94e51

Please sign in to comment.