From fd76c4e8306cb4b9a9fa53b45b3a7f6dd193dbcd Mon Sep 17 00:00:00 2001 From: drafish Date: Tue, 13 Feb 2024 19:12:43 +0800 Subject: [PATCH] rm @fortawesome/* packages --- .../src/components/BackButton/index.tsx | 10 +++---- .../src/components/RepoImporter/index.tsx | 8 +++--- apps/learneth/src/pages/Home/index.tsx | 6 ++--- package.json | 3 --- yarn.lock | 26 ------------------- 5 files changed, 9 insertions(+), 44 deletions(-) diff --git a/apps/learneth/src/components/BackButton/index.tsx b/apps/learneth/src/components/BackButton/index.tsx index d18e2efbe0..14f8112d4f 100644 --- a/apps/learneth/src/components/BackButton/index.tsx +++ b/apps/learneth/src/components/BackButton/index.tsx @@ -1,8 +1,6 @@ import React, {useState} from 'react' import {Link, useLocation, useNavigate} from 'react-router-dom' import {Button, Modal, Tooltip, OverlayTrigger} from 'react-bootstrap' -import {FontAwesomeIcon} from '@fortawesome/react-fontawesome' -import {faHome, faBars, faChevronLeft, faChevronRight} from '@fortawesome/free-solid-svg-icons' import './index.scss' function BackButton({entity}: any) { @@ -25,14 +23,14 @@ function BackButton({entity}: any) { role="button" > Leave tutorial}> - + {isDetailPage && (
  • - +
  • )} @@ -41,13 +39,13 @@ function BackButton({entity}: any) {
    {stepId > 0 && ( - + )} {stepId + 1}/{entity &&
    {entity.steps.length}
    } {stepId < entity.steps.length - 1 && ( - + )} diff --git a/apps/learneth/src/components/RepoImporter/index.tsx b/apps/learneth/src/components/RepoImporter/index.tsx index 7bc3a7f90e..47c1f73705 100644 --- a/apps/learneth/src/components/RepoImporter/index.tsx +++ b/apps/learneth/src/components/RepoImporter/index.tsx @@ -1,7 +1,5 @@ import React, {useState, useEffect} from 'react' import {Button, Dropdown, Form, Tooltip, OverlayTrigger} from 'react-bootstrap' -import {FontAwesomeIcon} from '@fortawesome/react-fontawesome' -import {faQuestionCircle, faInfoCircle, faChevronRight, faChevronDown} from '@fortawesome/free-solid-svg-icons' import {useAppDispatch} from '../../redux/hooks' import './index.css' @@ -47,7 +45,7 @@ function RepoImporter({list, selectedRepo}: any): JSX.Element {
    - +
    Import another tutorial repo
    @@ -85,7 +83,7 @@ function RepoImporter({list, selectedRepo}: any): JSX.Element { REPO ie username/repository}> - + - how to setup your repo + how to setup your repo )} diff --git a/apps/learneth/src/pages/Home/index.tsx b/apps/learneth/src/pages/Home/index.tsx index 503f056e11..6835901900 100644 --- a/apps/learneth/src/pages/Home/index.tsx +++ b/apps/learneth/src/pages/Home/index.tsx @@ -1,7 +1,5 @@ import React, {useEffect} from 'react' import {Link} from 'react-router-dom' -import {FontAwesomeIcon} from '@fortawesome/react-fontawesome' -import {faChevronRight, faChevronDown, faPlayCircle} from '@fortawesome/free-solid-svg-icons' import Markdown from 'react-markdown' import rehypeRaw from 'rehype-raw' import remarkGfm from 'remark-gfm' @@ -51,7 +49,7 @@ function HomePage(): JSX.Element { handleClick(item.id) }} > - + - +
    diff --git a/package.json b/package.json index ddd68c6a00..80aa2b75a0 100644 --- a/package.json +++ b/package.json @@ -138,9 +138,6 @@ "@ethereumjs/util": "^8.0.5", "@ethereumjs/vm": "^6.4.1", "@ethersphere/bee-js": "^3.2.0", - "@fortawesome/fontawesome-svg-core": "^6.5.1", - "@fortawesome/free-solid-svg-icons": "^6.5.1", - "@fortawesome/react-fontawesome": "^0.2.0", "@isomorphic-git/lightning-fs": "^4.4.1", "@microlink/react-json-view": "^1.23.0", "@openzeppelin/contracts": "^5.0.0", diff --git a/yarn.lock b/yarn.lock index 6977032bbc..93a208eb2c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2954,37 +2954,11 @@ intl-messageformat "10.1.0" tslib "2.4.0" -"@fortawesome/fontawesome-common-types@6.5.1": - version "6.5.1" - resolved "https://registry.yarnpkg.com/@fortawesome/fontawesome-common-types/-/fontawesome-common-types-6.5.1.tgz#fdb1ec4952b689f5f7aa0bffe46180bb35490032" - integrity sha512-GkWzv+L6d2bI5f/Vk6ikJ9xtl7dfXtoRu3YGE6nq0p/FFqA1ebMOAWg3XgRyb0I6LYyYkiAo+3/KrwuBp8xG7A== - "@fortawesome/fontawesome-free@^5.8.1": version "5.15.4" resolved "https://registry.yarnpkg.com/@fortawesome/fontawesome-free/-/fontawesome-free-5.15.4.tgz#ecda5712b61ac852c760d8b3c79c96adca5554e5" integrity sha512-eYm8vijH/hpzr/6/1CJ/V/Eb1xQFW2nnUKArb3z+yUWv7HTwj6M7SP957oMjfZjAHU6qpoNc2wQvIxBLWYa/Jg== -"@fortawesome/fontawesome-svg-core@^6.5.1": - version "6.5.1" - resolved "https://registry.yarnpkg.com/@fortawesome/fontawesome-svg-core/-/fontawesome-svg-core-6.5.1.tgz#9d56d46bddad78a7ebb2043a97957039fcebcf0a" - integrity sha512-MfRCYlQPXoLlpem+egxjfkEuP9UQswTrlCOsknus/NcMoblTH2g0jPrapbcIb04KGA7E2GZxbAccGZfWoYgsrQ== - dependencies: - "@fortawesome/fontawesome-common-types" "6.5.1" - -"@fortawesome/free-solid-svg-icons@^6.5.1": - version "6.5.1" - resolved "https://registry.yarnpkg.com/@fortawesome/free-solid-svg-icons/-/free-solid-svg-icons-6.5.1.tgz#737b8d787debe88b400ab7528f47be333031274a" - integrity sha512-S1PPfU3mIJa59biTtXJz1oI0+KAXW6bkAb31XKhxdxtuXDiUIFsih4JR1v5BbxY7hVHsD1RKq+jRkVRaf773NQ== - dependencies: - "@fortawesome/fontawesome-common-types" "6.5.1" - -"@fortawesome/react-fontawesome@^0.2.0": - version "0.2.0" - resolved "https://registry.yarnpkg.com/@fortawesome/react-fontawesome/-/react-fontawesome-0.2.0.tgz#d90dd8a9211830b4e3c08e94b63a0ba7291ddcf4" - integrity sha512-uHg75Rb/XORTtVt7OS9WoK8uM276Ufi7gCzshVWkUJbHhh3svsUUeqXerrM96Wm7fRiDzfKRwSoahhMIkGAYHw== - dependencies: - prop-types "^15.8.1" - "@gar/promisify@^1.1.3": version "1.1.3" resolved "https://registry.yarnpkg.com/@gar/promisify/-/promisify-1.1.3.tgz#555193ab2e3bb3b6adc3d551c9c030d9e860daf6"