From 8208a7c4ece0cb5715df90274609118c8a15014a Mon Sep 17 00:00:00 2001 From: GotthardG <51994228+GotthardG@users.noreply.github.com> Date: Thu, 28 Nov 2024 11:47:31 +0100 Subject: [PATCH] can now return the dewar to its slot --- logistics/src/components/ScannerModal.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/logistics/src/components/ScannerModal.tsx b/logistics/src/components/ScannerModal.tsx index 598cb57..3212549 100644 --- a/logistics/src/components/ScannerModal.tsx +++ b/logistics/src/components/ScannerModal.tsx @@ -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 = ({ open, onClose, onScan, slotQRCodes }) => { +const ScannerModal: React.FC = ({ open, onClose, onScan }) => { const handleScan = (data: { text: string } | null) => { if (data) { onScan(data);