fix: Update Load & Save Icons to FontAwesome

This commit is contained in:
blessedcoolant 2023-07-12 13:58:14 +12:00
parent 3b61a3abeb
commit 84af35597d
2 changed files with 5 additions and 6 deletions

View File

@ -6,7 +6,7 @@ import { loadFileEdges, loadFileNodes } from 'features/nodes/store/nodesSlice';
import { addToast } from 'features/system/store/systemSlice'; import { addToast } from 'features/system/store/systemSlice';
import { memo, useCallback, useRef } from 'react'; import { memo, useCallback, useRef } from 'react';
import { useTranslation } from 'react-i18next'; import { useTranslation } from 'react-i18next';
import { BiUpload } from 'react-icons/bi'; import { FaUpload } from 'react-icons/fa';
import { useReactFlow } from 'reactflow'; import { useReactFlow } from 'reactflow';
const LoadNodesButton = () => { const LoadNodesButton = () => {
@ -66,8 +66,7 @@ const LoadNodesButton = () => {
> >
{(props) => ( {(props) => (
<IAIIconButton <IAIIconButton
icon={<BiUpload />} icon={<FaUpload />}
fontSize={20}
tooltip={t('nodes.loadNodes')} tooltip={t('nodes.loadNodes')}
aria-label={t('nodes.loadNodes')} aria-label={t('nodes.loadNodes')}
{...props} {...props}

View File

@ -3,7 +3,7 @@ import { useAppSelector } from 'app/store/storeHooks';
import IAIIconButton from 'common/components/IAIIconButton'; import IAIIconButton from 'common/components/IAIIconButton';
import { memo, useCallback } from 'react'; import { memo, useCallback } from 'react';
import { useTranslation } from 'react-i18next'; import { useTranslation } from 'react-i18next';
import { BiSave } from 'react-icons/bi'; import { FaSave } from 'react-icons/fa';
const SaveNodesButton = () => { const SaveNodesButton = () => {
const { t } = useTranslation(); const { t } = useTranslation();
@ -27,8 +27,8 @@ const SaveNodesButton = () => {
return ( return (
<IAIIconButton <IAIIconButton
icon={<BiSave />} icon={<FaSave />}
fontSize={20} fontSize={18}
tooltip={t('nodes.saveNodes')} tooltip={t('nodes.saveNodes')}
aria-label={t('nodes.saveNodes')} aria-label={t('nodes.saveNodes')}
onClick={saveEditorToJSON} onClick={saveEditorToJSON}