-
Notifications
You must be signed in to change notification settings - Fork 0
fix: 메서드 설명 추가 및 작성자 주석 추가 #56
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
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,6 +8,18 @@ interface Notification { | |
| date: string; | ||
| } | ||
|
|
||
| /*========================== | ||
| * | ||
| * 서버에서 알림 목록을 조회하여 리스트로 렌더링하는 컴포넌트 | ||
| * | ||
| * @parm - | ||
| * @return JSX.Element 알림 목록 UI | ||
| * @author 김경민 | ||
| * @version 1.0.0 | ||
| * @date 2025-12-15 | ||
| * | ||
| ==========================**/ | ||
|
Comment on lines
+11
to
+21
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. 컴포넌트에 대한 주석을 표준 JSDoc 형식으로 개선하는 것을 제안합니다.
|
||
|
|
||
| export default function NotificationList() { | ||
| const [notifications, setNotifications] = useState<Notification[]>([]); | ||
| const [loading, setLoading] = useState(true); | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,17 @@ | ||
| import NotificationList from '@/components/notification/NotificationList'; | ||
|
|
||
| /*========================== | ||
| * | ||
| * 알림 페이지의 레이아웃을 구성하는 컴포넌트 | ||
| * | ||
| * @parm - | ||
| * @return JSX.Element 알림 페이지 UI | ||
| * @author 김경민 | ||
| * @version 1.0.0 | ||
| * @date 2025-12-15 | ||
| * | ||
| ==========================**/ | ||
|
Comment on lines
+3
to
+13
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. 컴포넌트에 대한 주석을 표준 JSDoc 형식으로 개선하는 것을 제안합니다.
|
||
|
|
||
| export default function NotificationPage(){ | ||
| return ( | ||
| <section className="w-full flex justify-center pt-4"> | ||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
컴포넌트에 대한 주석을 표준 JSDoc 형식으로 개선하는 것을 제안합니다. 이렇게 하면 가독성이 향상되고 문서 자동 생성 도구와 더 잘 호환됩니다.
/** ... */형식으로 변경합니다.@parm을 표준 태그인@param으로 수정합니다.@return을 표준 태그인@returns로 수정합니다.==========================)은 제거하는 것이 좋습니다.또한,
NotificationItemProps인터페이스에는id속성도 포함되어 있으므로, 문서에 이를 추가하는 것을 고려해 보세요. 현재 함수에서는 사용되지 않지만, props 인터페이스의 일부입니다.