Skip to content

Commit 6ac3d3b

Browse files
committed
@react-icons/all-files hasn't been updated in long time. Replace it with react-icons
1 parent 163fda4 commit 6ac3d3b

File tree

6 files changed

+22
-30
lines changed

6 files changed

+22
-30
lines changed

components/Footer.tsx

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
1-
import { FaEnvelopeOpenText } from '@react-icons/all-files/fa/FaEnvelopeOpenText'
2-
import { FaGithub } from '@react-icons/all-files/fa/FaGithub'
3-
import { FaLinkedin } from '@react-icons/all-files/fa/FaLinkedin'
4-
import { FaMastodon } from '@react-icons/all-files/fa/FaMastodon'
5-
import { FaTwitter } from '@react-icons/all-files/fa/FaTwitter'
6-
import { FaYoutube } from '@react-icons/all-files/fa/FaYoutube'
7-
import { FaZhihu } from '@react-icons/all-files/fa/FaZhihu'
8-
import { IoMoonSharp } from '@react-icons/all-files/io5/IoMoonSharp'
9-
import { IoSunnyOutline } from '@react-icons/all-files/io5/IoSunnyOutline'
101
import * as React from 'react'
2+
import { FaEnvelopeOpenText, FaGithub, FaLinkedin, FaMastodon, FaTwitter, FaYoutube, FaZhihu, } from 'react-icons/fa'
3+
import { IoMoonSharp, IoSunnyOutline } from 'react-icons/io5'
114

125
import * as config from '@/lib/config'
136
import { useDarkMode } from '@/lib/use-dark-mode'

components/NotionPageHeader.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import type * as types from 'notion-types'
2-
import { IoMoonSharp } from '@react-icons/all-files/io5/IoMoonSharp'
3-
import { IoSunnyOutline } from '@react-icons/all-files/io5/IoSunnyOutline'
42
import cs from 'classnames'
53
import * as React from 'react'
4+
import { IoMoonSharp, IoSunnyOutline } from 'react-icons/io5'
65
import { Breadcrumbs, Header, Search, useNotionContext } from 'react-notion-x'
76

87
import { isSearchEnabled, navigationLinks, navigationStyle } from '@/lib/config'

components/PageActions.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { AiOutlineRetweet } from '@react-icons/all-files/ai/AiOutlineRetweet'
2-
import { IoHeartOutline } from '@react-icons/all-files/io5/IoHeartOutline'
1+
import { AiOutlineRetweet } from 'react-icons/ai'
2+
import { IoHeartOutline } from 'react-icons/io5'
33

44
import styles from './styles.module.css'
55

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"@fisch0920/use-dark-mode": "^2.4.0",
3434
"@keyvhq/core": "^1.6.9",
3535
"@keyvhq/redis": "^1.6.10",
36-
"@react-icons/all-files": "^4.1.0",
36+
"react-icons": "^5.3.0",
3737
"@vercel/og": "^0.6.3",
3838
"classnames": "^2.5.1",
3939
"date-fns": "^2.30.0",

pages/_document.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { IconContext } from '@react-icons/all-files'
21
import Document, { Head, Html, Main, NextScript } from 'next/document'
2+
import { IconContext } from 'react-icons'
33

44
export default class MyDocument extends Document {
55
render() {

pnpm-lock.yaml

Lines changed: 15 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)