-
Notifications
You must be signed in to change notification settings - Fork 2
[Deploy] 배포 #114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Deploy] 배포 #114
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,7 +7,7 @@ export default function Footer() { | |
| {/* 상단 */} | ||
| <ul className="flex flex-wrap gap-x-4 gap-y-2 text-sm font-caption text-default-gray-800"> | ||
| <li> | ||
| <Link to="/">개인정보 처리방침</Link> | ||
| <div onClick={() => alert('아직 지원하지 않는 기능이에요')}>개인정보 처리방침</div> | ||
| </li> | ||
|
Comment on lines
+10
to
11
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion div에 onClick 사용으로 접근성(a11y) 위반 — button으로 교체 권장 정적 요소에 인터랙션을 부여해 lint 경고가 발생합니다(noStaticElementInteractions, useKeyWithClickEvents). 시멘틱한 아래처럼 교체해 주세요. - <div onClick={() => alert('아직 지원하지 않는 기능이에요')}>개인정보 처리방침</div>
+ <button type="button" onClick={() => alert('아직 지원하지 않는 기능이에요')} className="cursor-pointer">
+ 개인정보 처리방침
+ </button>
...
- <div onClick={() => alert('아직 지원하지 않는 기능이에요')}>고객문의</div>
+ <button type="button" onClick={() => alert('아직 지원하지 않는 기능이에요')} className="cursor-pointer">
+ 고객문의
+ </button>참고: 향후 실제 페이지가 준비되면 Also applies to: 23-24 🧰 Tools🪛 Biome (2.1.2)[error] 10-11: Static Elements should not be interactive. To add interactivity such as a mouse or key event listener to a static element, give the element an appropriate role value. (lint/a11y/noStaticElementInteractions) [error] 10-11: Enforce to have the onClick mouse event with the onKeyUp, the onKeyDown, or the onKeyPress keyboard event. Actions triggered using mouse events should have corresponding keyboard events to account for keyboard-only navigation. (lint/a11y/useKeyWithClickEvents) 🤖 Prompt for AI Agents |
||
| <span>|</span> | ||
| <li> | ||
|
|
@@ -20,7 +20,7 @@ export default function Footer() { | |
| </li> | ||
| <span>|</span> | ||
| <li> | ||
| <Link to="/">고객문의</Link> | ||
| <div onClick={() => alert('아직 지원하지 않는 기능이에요')}>고객문의</div> | ||
| </li> | ||
| </ul> | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Verification agent
🧩 Analysis chain
AxiosError에 status 필드 직접 접근은 잘못된 패턴 — 401 분기 동작하지 않습니다
Axios에서는 HTTP 상태코드가
error.response?.status에 있습니다. 현재error.status === 401은 항상 실패하여 리프레시 로직이 실행되지 않습니다.아래처럼 수정해 주세요.
다음 스크립트로 레포 내에서 유사한 오용을 점검해 주세요.
🏁 Script executed:
Length of output: 98
이전 스크립트에서
--type=tsx를 인식하지 못해 오류가 발생했습니다. 아래처럼 파일 확장자를 직접 지정해 다시 확인해 주세요.🏁 Script executed:
Length of output: 1157
AxiosError 상태코드 접근 방식 수정 요청
AxiosError의 HTTP 상태코드는
error.response?.status에 저장되므로,error.status또는refreshError.status직접 접근은 항상undefined를 반환해 분기가 동작하지 않습니다. 아래 3곳을 모두 수정해 주세요.• src/api/axiosInstance.ts:21
• src/api/axiosInstance.ts:43
• src/api/axiosInstance.ts:47
🤖 Prompt for AI Agents