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:
yoosangwook 2025-05-22 15:04:59 +09:00
parent e846b55faa
commit 0a88c80bd9

View File

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