can now return the dewar to its slot

This commit is contained in:
GotthardG
2024-11-28 11:47:31 +01:00
parent 69c8bcbbcd
commit 8208a7c4ec

View File

@ -1,8 +1,8 @@
import React, { useState } from 'react';
import React from 'react';
import QrScanner from 'react-qr-scanner';
import { Box, Button } from '@mui/material';
import { Box } from '@mui/material';
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)`
position: relative;
@ -79,7 +79,7 @@ interface ScannerModalProps {
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) => {
if (data) {
onScan(data);