mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-24 09:28:31 +00:00
* eslint-setup: rules for frontend and server * setup pre-commit:hook * frontend:eslint fixes * frontend eslint errors and warning fixed * eslint:fix for ./server * fix server/test: expectatin string lint/error * pre-commit:updated * removed unwanted install cmd from docker file * recommended settings and extension for vscode * husky prepare script added * updated extension recommendations * added prettier as recommended extension * added pre-commit to package.json * remove .prettierrc file * resolve changes * resolve changes
41 lines
1.2 KiB
JavaScript
41 lines
1.2 KiB
JavaScript
import React from 'react';
|
|
|
|
export default function ErrorModal() {
|
|
const [show, setShow] = React.useState(true);
|
|
|
|
const close = () => {
|
|
setShow(false);
|
|
};
|
|
|
|
return (
|
|
<div>
|
|
{show ? (
|
|
<div className="modal-dialog" role="document">
|
|
<div className="modal-content">
|
|
<div className="modal-header">
|
|
<h5 className="modal-title">QR Scanner is not working</h5>
|
|
<button
|
|
type="button"
|
|
className="btn-close"
|
|
data-bs-dismiss="modal"
|
|
aria-label="Close"
|
|
onClick={close}
|
|
></button>
|
|
</div>
|
|
<div className="modal-body">
|
|
Please make sure a camera is available on your device. Try closing your browser and opening it again, if
|
|
it doesn't work, please contact support.
|
|
</div>
|
|
<div className="modal-footer">
|
|
<button type="button" className="btn" data-bs-dismiss="modal" onClick={close}>
|
|
Close
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
) : (
|
|
''
|
|
)}
|
|
</div>
|
|
);
|
|
}
|