diff --git a/src/components/BarcodeReader/BarcodeReader.jsx b/src/components/BarcodeReader/BarcodeReader.jsx index a9b59fe..0545b06 100644 --- a/src/components/BarcodeReader/BarcodeReader.jsx +++ b/src/components/BarcodeReader/BarcodeReader.jsx @@ -51,7 +51,8 @@ export function BarcodeReader({ lineWidth: 4 }, textHeader = 'Com boa iluminação, posicione o código de barras na área delimitada:', - textCancel = 'Cancelar' + textCancel = 'Cancelar', + frequency = 5 }) { const [compareWidth, setCompare] = useState(window.innerWidth) const [resizing, setResizing] = useState(null) @@ -83,7 +84,7 @@ export function BarcodeReader({ }, ...inputStream }, - frequency: 5, + frequency: frequency, singleChannel: true, locate: true, locator: { diff --git a/src/components/BoletoBarcodeReader/BoletoBarcodeReader.jsx b/src/components/BoletoBarcodeReader/BoletoBarcodeReader.jsx index f7ff926..28f8f40 100644 --- a/src/components/BoletoBarcodeReader/BoletoBarcodeReader.jsx +++ b/src/components/BoletoBarcodeReader/BoletoBarcodeReader.jsx @@ -16,6 +16,7 @@ export function BoletoBarcodeReader({ onCancel, landscape = true, textLandscape = '', + frequency = 5, ...props }) { const [wasDetected, setDetected] = useState(false) @@ -56,6 +57,7 @@ export function BoletoBarcodeReader({ aspectRatio={aspectRatio} onCancel={onCancel} onDetected={handleDetected} + frequency={frequency} {...props} />