From 071a51be349f312215a8ee3589bdcd287f5a9427 Mon Sep 17 00:00:00 2001 From: Mat Sz Date: Thu, 26 Oct 2023 18:06:20 +0200 Subject: [PATCH] replace fa icons with io5 --- web/src/sections/Transfers/Actions.tsx | 4 +-- .../Transfers/Transfer/TransferActions.tsx | 4 +-- .../Transfers/Transfer/TransferIcon.tsx | 27 +++++++-------- .../Transfers/Transfer/TransferTarget.tsx | 34 +++++++++---------- web/src/sections/YourTile/ClientName.tsx | 4 +-- 5 files changed, 36 insertions(+), 37 deletions(-) diff --git a/web/src/sections/Transfers/Actions.tsx b/web/src/sections/Transfers/Actions.tsx index 49ab66d..3b74f3b 100644 --- a/web/src/sections/Transfers/Actions.tsx +++ b/web/src/sections/Transfers/Actions.tsx @@ -1,5 +1,5 @@ import React from 'react'; -import { IoCheckmarkDone, IoCloseSharp } from 'react-icons/io5'; +import { IoCheckmarkDone, IoClose } from 'react-icons/io5'; import { useTranslation } from 'react-i18not'; import styles from './Actions.module.scss'; @@ -39,7 +39,7 @@ export const Actions: React.FC = ({ transfers }) => { )} - + diff --git a/web/src/sections/Transfers/Transfer/TransferActions.tsx b/web/src/sections/Transfers/Transfer/TransferActions.tsx index d7eebf9..6f64283 100644 --- a/web/src/sections/Transfers/Transfer/TransferActions.tsx +++ b/web/src/sections/Transfers/Transfer/TransferActions.tsx @@ -1,5 +1,5 @@ import React from 'react'; -import { IoCloseSharp, IoCheckmark, IoArrowDown } from 'react-icons/io5'; +import { IoClose, IoCheckmark, IoArrowDown } from 'react-icons/io5'; import { observer } from 'mobx-react-lite'; import { useTranslation } from 'react-i18not'; @@ -51,7 +51,7 @@ export const TransferActions: React.FC = observer( className={styles.negative} title={t('cancel')} > - + ); diff --git a/web/src/sections/Transfers/Transfer/TransferIcon.tsx b/web/src/sections/Transfers/Transfer/TransferIcon.tsx index af862e0..9a2867f 100644 --- a/web/src/sections/Transfers/Transfer/TransferIcon.tsx +++ b/web/src/sections/Transfers/Transfer/TransferIcon.tsx @@ -1,13 +1,13 @@ import React from 'react'; import { useTranslation } from 'react-i18not'; import { - FaFile, - FaFileAlt, - FaFileVideo, - FaFileAudio, - FaFileImage, - FaFileArchive, -} from 'react-icons/fa'; + IoDocument, + IoDocumentText, + IoFilm, + IoMusicalNotes, + IoImage, + IoArchive, +} from 'react-icons/io5'; import styles from './TransferIcon.module.scss'; import { fileType } from '../../../utils/file.js'; @@ -23,19 +23,18 @@ const typeIcon = (mime: string) => { switch (type) { case FileType.ARCHIVE: - return ; + return ; case FileType.IMAGE: - return ; + return ; case FileType.AUDIO: - return ; + return ; case FileType.VIDEO: - return ; + return ; case FileType.BINARY: - return ; case FileType.TEXT: - return ; + return ; default: - return ; + return ; } }; diff --git a/web/src/sections/Transfers/Transfer/TransferTarget.tsx b/web/src/sections/Transfers/Transfer/TransferTarget.tsx index a596761..7a8cbc7 100644 --- a/web/src/sections/Transfers/Transfer/TransferTarget.tsx +++ b/web/src/sections/Transfers/Transfer/TransferTarget.tsx @@ -1,15 +1,15 @@ import React from 'react'; import { useTranslation } from 'react-i18not'; import { - FaTimes, - FaArrowDown, - FaArrowUp, - FaAngleDoubleDown, - FaCheck, - FaAngleDoubleUp, - FaHourglassHalf, - FaHourglassEnd, -} from 'react-icons/fa'; + IoClose, + IoArrowDown, + IoArrowUp, + IoCaretUp, + IoCaretDown, + IoCheckmark, + IoHourglassOutline, + IoLink, +} from 'react-icons/io5'; import { observer } from 'mobx-react-lite'; import styles from './TransferTarget.module.scss'; @@ -26,23 +26,23 @@ interface TransferIconProps { const stateIcon = (state: TransferState, receiving: boolean) => { switch (state) { case TransferState.INCOMING: - return ; + return ; case TransferState.OUTGOING: - return ; + return ; case TransferState.FAILED: - return ; + return ; case TransferState.IN_PROGRESS: if (receiving) { - return ; + return ; } else { - return ; + return ; } case TransferState.CONNECTING: - return ; + return ; case TransferState.CONNECTED: - return ; + return ; case TransferState.COMPLETE: - return ; + return ; } }; diff --git a/web/src/sections/YourTile/ClientName.tsx b/web/src/sections/YourTile/ClientName.tsx index 46dc94e..8c1b310 100644 --- a/web/src/sections/YourTile/ClientName.tsx +++ b/web/src/sections/YourTile/ClientName.tsx @@ -1,6 +1,6 @@ import React, { useState } from 'react'; import { useTranslation } from 'react-i18not'; -import { IoPencil, IoCheckmark, IoCloseSharp } from 'react-icons/io5'; +import { IoPencil, IoCheckmark, IoClose } from 'react-icons/io5'; import { observer } from 'mobx-react-lite'; import styles from './ClientName.module.scss'; @@ -57,7 +57,7 @@ export const ClientName: React.FC = observer(() => { - + )}