mirror of
https://github.com/yude-jp/yude.jp
synced 2025-10-13 11:48:37 +09:00
Update how to load icons
This commit is contained in:
@@ -1,16 +1,12 @@
|
||||
// Router
|
||||
// React Router
|
||||
import { useRouter } from 'next/router'
|
||||
import React, { useEffect, useState } from 'react'
|
||||
|
||||
// Next.js
|
||||
import Link from 'next/link'
|
||||
|
||||
// Load FontAwesome
|
||||
// Font Awesome
|
||||
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
||||
import { library } from '@fortawesome/fontawesome-svg-core'
|
||||
import { fab } from '@fortawesome/free-brands-svg-icons'
|
||||
import { fas } from '@fortawesome/free-solid-svg-icons'
|
||||
library.add(fab, fas)
|
||||
|
||||
const FontAwesomeMenu = (props) => {
|
||||
const { icon, dest } = props
|
||||
|
Reference in New Issue
Block a user