diff --git a/src/Components/QrScanner/TorchButton.tsx b/src/Components/QrScanner/TorchButton.tsx index 5953e69..1dff4ac 100644 --- a/src/Components/QrScanner/TorchButton.tsx +++ b/src/Components/QrScanner/TorchButton.tsx @@ -44,28 +44,31 @@ export function TorchButton({html5CustomScanner, canUseCamera}: TorchButtonProps Your device's torch is unavailable -
-
- -
-
); } return ( -
+ <>
setTorchOn(prev => !prev)} - className="inline-flex cursor-pointer rounded-full bg-primary text-white" + className="fit-content flex justify-center gap-1 bg-primary py-3 text-center text-white" > - {torchOn ? ( - - ) : ( - - )} + + {torchOn ? ( + <> + + Turn torch off + + ) : ( + <> + + Turn torch on + + )} +
-
+ ); }