mirror of
https://gitlab.nic.cz/turris/reforis/foris-js.git
synced 2024-12-26 00:21:36 +01:00
Update Wi-Fi QRCodeModal component to use new button styles & add close button
This commit is contained in:
parent
ea590e443c
commit
e7ec494bb2
|
@ -70,17 +70,26 @@ function QRCodeModal({ shown, setShown, SSID, password }) {
|
||||||
<ModalHeader setShown={setShown} title={_("Wi-Fi QR Code")} />
|
<ModalHeader setShown={setShown} title={_("Wi-Fi QR Code")} />
|
||||||
<ModalBody>
|
<ModalBody>
|
||||||
<QRCode
|
<QRCode
|
||||||
|
className="d-block mx-auto img-logo-black"
|
||||||
renderAs="svg"
|
renderAs="svg"
|
||||||
value={toQRCodeContent(SSID, password)}
|
value={toQRCodeContent(SSID, password)}
|
||||||
level="M"
|
level="M"
|
||||||
size={350}
|
size={350}
|
||||||
includeMargin
|
includeMargin
|
||||||
style={{ display: "block", margin: "auto" }}
|
|
||||||
/>
|
/>
|
||||||
</ModalBody>
|
</ModalBody>
|
||||||
<ModalFooter>
|
<ModalFooter>
|
||||||
<Button
|
<Button
|
||||||
className="btn-outline-primary"
|
className="btn-secondary"
|
||||||
|
onClick={(e) => {
|
||||||
|
e.preventDefault();
|
||||||
|
setShown(false);
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
{_("Close")}
|
||||||
|
</Button>
|
||||||
|
<Button
|
||||||
|
className="btn-primary"
|
||||||
onClick={(e) => {
|
onClick={(e) => {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
createAndDownloadPdf(SSID, password);
|
createAndDownloadPdf(SSID, password);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user