This commit is contained in:
2025-07-11 10:11:22 +00:00
parent 3c89d14636
commit fdf242c060
6 changed files with 16 additions and 20 deletions
-3
View File
@@ -1,8 +1,5 @@
import React, { useRef, useLayoutEffect, useEffect, useState, CSSProperties } from 'react'
import axios from 'axios'
import { Link, useNavigate, useLocation } from 'react-router-dom'
import { API_BASE_URL } from '../config'
type Props = { id: string,
width: number,
height: number,
+2 -5
View File
@@ -10,7 +10,7 @@ import { cn } from '@/lib/utils'
import type { Tag, User, WikiPage } from '@/types'
type Props = { user: User
type Props = { user: User | null
setUser: (user: User) => void }
const enum Menu { None,
@@ -20,7 +20,7 @@ const enum Menu { None,
Wiki }
const TopNav: React.FC = ({ user, setUser }: Props) => {
export default ({ user, setUser }: Props) => {
const location = useLocation ()
const navigate = useNavigate ()
@@ -230,6 +230,3 @@ const TopNav: React.FC = ({ user, setUser }: Props) => {
}) ()}
</>)
}
export default TopNav