mirror of
https://gitlab.nic.cz/turris/reforis/foris-js.git
synced 2025-06-16 13:46:16 +02:00
Migrate to FontAwesome v6
This commit is contained in:
@ -7,6 +7,7 @@
|
||||
|
||||
import React, { useState } from "react";
|
||||
|
||||
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
||||
import PropTypes from "prop-types";
|
||||
import QRCode from "qrcode.react";
|
||||
|
||||
@ -37,10 +38,11 @@ export default function WiFiQRCode({ SSID, password }) {
|
||||
setModal(true);
|
||||
}}
|
||||
>
|
||||
<i
|
||||
className="fa-solid fa-qrcode"
|
||||
<FontAwesomeIcon
|
||||
icon="fa-solid fa-qrcode"
|
||||
title={_("Show QR code")}
|
||||
aria-label={_("Show QR code")}
|
||||
className="text-dark"
|
||||
/>
|
||||
</button>
|
||||
{modal ? (
|
||||
@ -84,7 +86,10 @@ function QRCodeModal({ shown, setShown, SSID, password }) {
|
||||
createAndDownloadPdf(SSID, password);
|
||||
}}
|
||||
>
|
||||
<i className="fas fa-file-download me-2" />
|
||||
<FontAwesomeIcon
|
||||
icon="fa-solid fa-file-download"
|
||||
className="me-2"
|
||||
/>
|
||||
{_("Download PDF")}
|
||||
</Button>
|
||||
</ModalFooter>
|
||||
|
Reference in New Issue
Block a user