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