refactor: Update Header component to utilize useAxios for API integration
- Replaced direct axiosInstance import with useAxios hook for improved API management. - Cleaned up imports and enhanced code structure for better readability.
This commit is contained in:
parent
e846b55faa
commit
0a88c80bd9
@ -13,14 +13,13 @@ import { useSessionStore } from '@/store/session'
|
||||
import { usePopupController } from '@/store/popupController'
|
||||
|
||||
import { useTitle } from '@/hooks/useTitle'
|
||||
|
||||
import { axiosInstance } from '@/libs/axios'
|
||||
|
||||
import { useAxios } from '@/hooks/useAxios'
|
||||
import 'swiper/css'
|
||||
|
||||
export default function Header() {
|
||||
const router = useRouter()
|
||||
const pathname = usePathname()
|
||||
const { axiosInstance } = useAxios()
|
||||
const [value, setValue, removeValue] = useLocalStorage<{ indivisualData: string }>('hanasysIndivisualState', { indivisualData: '' })
|
||||
const { sideNavIsOpen, setSideNavIsOpen } = useSideNavState()
|
||||
const { backBtn } = useHeaderStore()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user