Selaa lähdekoodia

fix(exam): add missing click response handling for soft exposure button in device area

sw 4 viikkoa sitten
vanhempi
commit
54b50a95da
1 muutettua tiedostoa jossa 2 lisäystä ja 0 poistoa
  1. 2 0
      src/pages/exam/DeviceArea.tsx

+ 2 - 0
src/pages/exam/DeviceArea.tsx

@@ -10,6 +10,7 @@ import {
   GENERATOR_STATUS,
   GeneratorStatus,
 } from '@/states/exam/deviceAreaSlice';
+import triggerInspection from '../../API/exam/triggerInspection';
 
 const DeviceArea = ({ className }: { className?: string }) => {
   const generatorStatus = useSelector(
@@ -68,6 +69,7 @@ const DeviceArea = ({ className }: { className?: string }) => {
           // }
           />
         }
+        onClick={triggerInspection}
         title={`曝光指示器: ${exposureStatus}`}
       />
       <Button