0
0
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:
2021-08-09 11:33:00 +09:00
parent b1dabb8fb9
commit ffc6acb9cb
2 changed files with 15 additions and 15 deletions

View File

@@ -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