functioncomponent -> react.fc

This commit is contained in:
spencerwooo
2022-01-06 19:25:10 +08:00
parent 1201bcf4e8
commit fef6b1eee5
8 changed files with 16 additions and 20 deletions
+2 -2
View File
@@ -2,12 +2,12 @@ import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
import Image from 'next/image'
import { useRouter } from 'next/router'
import { FunctionComponent, useState } from 'react'
import { FC, useState } from 'react'
import { matchProtectedRoute } from '../utils/protectedRouteHandler'
import useLocalStorage from '../utils/useLocalStorage'
const Auth: FunctionComponent<{ redirect: string }> = ({ redirect }) => {
const Auth: FC<{ redirect: string }> = ({ redirect }) => {
const authTokenPath = matchProtectedRoute(redirect)
const router = useRouter()