@robotical/webapp-types 3.7.20 → 3.7.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -103,10 +103,10 @@ export default function LEDLightsOrQRVerificationModal() {
|
|
|
103
103
|
return [2 /*return*/];
|
|
104
104
|
});
|
|
105
105
|
}); };
|
|
106
|
-
return (_jsxs("div", __assign({ className: styles.container }, { children: [_jsx("div", __assign({ className: styles.cards }, { children: options.map(function (_a) {
|
|
106
|
+
return (_jsxs("div", __assign({ className: styles.container }, { children: [!isButtonToConnectVisible ? _jsx("div", __assign({ className: styles.cards }, { children: options.map(function (_a) {
|
|
107
107
|
var id = _a.id, title = _a.title, subtitle = _a.subtitle, icon = _a.icon;
|
|
108
108
|
return (_jsxs("div", __assign({ className: qrSelected && id === 'qr' ? [styles.card, styles.qrselected].join(" ") : styles.card, onClick: function () { return handleSelect(id); } }, { children: [_jsx("div", __assign({ className: styles.icon }, { children: icon })), _jsx("h3", __assign({ className: styles.title }, { children: title })), _jsx("p", __assign({ className: styles.subtitle }, { children: subtitle }))] }), id));
|
|
109
|
-
}) })), qrSelected && _jsx(QRContent, { setSerialNo: setSerialNoFromQR }), _jsxs("div", __assign({ className: styles.buttonsContainer }, { children: [_jsx("button", __assign({ className: styles.
|
|
109
|
+
}) })) : _jsx("div", { children: "\u2705" }), qrSelected && _jsx(QRContent, { setSerialNo: setSerialNoFromQR }), _jsxs("div", __assign({ className: styles.buttonsContainer }, { children: [isButtonToConnectVisible && _jsx("button", __assign({ className: styles.connectButton, onClick: handleConnect }, { children: "QR code scan - click to connect" })), _jsx("button", __assign({ className: styles.cancelButton, onClick: function () { return modalState.closeModal(false); } }, { children: "Cancel" }))] }))] })));
|
|
110
110
|
}
|
|
111
111
|
function QRContent(_a) {
|
|
112
112
|
var _this = this;
|
|
@@ -126,7 +126,7 @@ function QRContent(_a) {
|
|
|
126
126
|
return [2 /*return*/];
|
|
127
127
|
});
|
|
128
128
|
}); };
|
|
129
|
-
return (_jsx("div", __assign({ className: styles.QRcontainer }, { children: _jsx("div", __assign({ className: styles.QRscannerContainer }, { children: _jsx(Scanner, { onError: function (err) { return console.error(err); }, formats: [
|
|
129
|
+
return (_jsx("div", __assign({ className: styles.QRcontainer }, { children: _jsx("div", __assign({ className: styles.QRscannerContainer }, { children: _jsx(Scanner, { styles: { container: { transform: 'scaleX(-1)' } }, onError: function (err) { return console.error(err); }, formats: [
|
|
130
130
|
"qr_code",
|
|
131
131
|
"micro_qr_code",
|
|
132
132
|
"rm_qr_code",
|