Compare commits

...

4 Commits

Author SHA1 Message Date
3ff43475ac feat: 사이드바 지붕재적합성 페이지 이동 연결 2025-06-05 10:41:18 +09:00
51aa45206f refactor: simplify Footer component structure
- Removed unnecessary imports and streamlined the Footer component by consolidating content into a single div, enhancing readability and maintainability.
2025-06-05 10:21:22 +09:00
4ae536cde4 refactor: streamline spinner visibility logic in useAxios hook
- Updated responseHandler to always hide the spinner, removing the conditional check for 'spinner-state' header.
2025-06-05 10:14:13 +09:00
3e8e08c3eb fix: prevent spinner from hiding on specific response headers
- Updated responseHandler in useAxios hook to conditionally hide the spinner only when the 'spinner-state' header is undefined.
2025-06-05 10:04:58 +09:00
3 changed files with 4 additions and 13 deletions

View File

@ -1,21 +1,10 @@
'use client'
import Link from 'next/link'
import Config from '@/config/config.export'
export default function Footer() {
return (
<>
<footer>
<div className="footer-inner">
COPYRIGHT©2025 Hanwha Japan All Rights Reserved{' '}
<span>
<Link href="/pdf/suitable">PDF</Link>
</span>
<span>{Config().mode}</span>
<span>{Config().baseUrl}</span>
<span>{process.env.NEXT_PUBLIC_API_URL}</span>
</div>
<div className="footer-inner">COPYRIGHT©2025 Hanwha Japan All Rights Reserved </div>
</footer>
</>
)

View File

@ -92,7 +92,7 @@ export default function Header() {
</div>
</SwiperSlide>
<SwiperSlide>
<div className="side-swiper-card">
<div className="side-swiper-card" onClick={() => router.push('/suitable')}>
<div className="side-swiper-icon icon01"></div>
<div className="side-swiper-infor"> </div>
</div>

View File

@ -9,7 +9,9 @@ export function useAxios() {
}
const responseHandler = (response: AxiosResponse) => {
// if (response.headers['spinner-state'] === undefined) {
useSpinnerStore.getState().setIsShow(false)
// }
response.data = transferResponse(response)
return response
}