can now return the dewar to its slot
This commit is contained in:
@ -1,8 +1,8 @@
|
|||||||
import React, { useState } from 'react';
|
import React from 'react';
|
||||||
import QrScanner from 'react-qr-scanner';
|
import QrScanner from 'react-qr-scanner';
|
||||||
import { Box, Button } from '@mui/material';
|
import { Box } from '@mui/material';
|
||||||
import styled from 'styled-components';
|
import styled from 'styled-components';
|
||||||
import Modal from '../components/Modal'; // Adjust the import path according to your project structure
|
import Modal from '../components/Modal';
|
||||||
|
|
||||||
const ScannerContainer = styled(Box)`
|
const ScannerContainer = styled(Box)`
|
||||||
position: relative;
|
position: relative;
|
||||||
@ -79,7 +79,7 @@ interface ScannerModalProps {
|
|||||||
slotQRCodes: string[]; // Required prop
|
slotQRCodes: string[]; // Required prop
|
||||||
}
|
}
|
||||||
|
|
||||||
const ScannerModal: React.FC<ScannerModalProps> = ({ open, onClose, onScan, slotQRCodes }) => {
|
const ScannerModal: React.FC<ScannerModalProps> = ({ open, onClose, onScan }) => {
|
||||||
const handleScan = (data: { text: string } | null) => {
|
const handleScan = (data: { text: string } | null) => {
|
||||||
if (data) {
|
if (data) {
|
||||||
onScan(data);
|
onScan(data);
|
||||||
|
Reference in New Issue
Block a user