-
Notifications
You must be signed in to change notification settings - Fork 0
알림 UI 수정 #375
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
알림 UI 수정 #375
Changes from all commits
4194321
6c518d3
7dd1cae
f3d30d2
a4c56fb
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 | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -25,17 +25,20 @@ const getBadgeColor = ( | |||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
| interface NotificationListProps { | ||||||||||||||||||||||||||
| notifications?: MemberNotificationResponse[]; | ||||||||||||||||||||||||||
| onNotificationClick?: (notification: MemberNotificationResponse) => void; | ||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
| export default function NotificationList({ | ||||||||||||||||||||||||||
| notifications, | ||||||||||||||||||||||||||
| onNotificationClick, | ||||||||||||||||||||||||||
| }: NotificationListProps) { | ||||||||||||||||||||||||||
| return ( | ||||||||||||||||||||||||||
| <ul> | ||||||||||||||||||||||||||
| {notifications?.map((notification) => ( | ||||||||||||||||||||||||||
| <li | ||||||||||||||||||||||||||
| key={notification.id} | ||||||||||||||||||||||||||
| className="border-bottom-border-default bg-background-default flex items-center justify-between border-b py-150" | ||||||||||||||||||||||||||
| className="border-bottom-border-default bg-background-default hover:bg-background-neutral-subtle flex cursor-pointer items-center justify-between border-b py-150" | ||||||||||||||||||||||||||
| onClick={() => onNotificationClick?.(notification)} | ||||||||||||||||||||||||||
| > | ||||||||||||||||||||||||||
| <div className="flex items-center gap-150"> | ||||||||||||||||||||||||||
| <Badge | ||||||||||||||||||||||||||
|
|
@@ -50,9 +53,11 @@ export default function NotificationList({ | |||||||||||||||||||||||||
| {notification.title} | ||||||||||||||||||||||||||
| </span> | ||||||||||||||||||||||||||
| </div> | ||||||||||||||||||||||||||
| <span className="font-designer-11r text-text-subtlest whitespace-nowrap"> | ||||||||||||||||||||||||||
| {format(notification.createdAt, 'yyyy.MM.dd HH:mm')} | ||||||||||||||||||||||||||
| </span> | ||||||||||||||||||||||||||
| <div className="flex items-center gap-100"> | ||||||||||||||||||||||||||
| <span className="font-designer-11r text-text-subtlest whitespace-nowrap"> | ||||||||||||||||||||||||||
| {format(notification.createdAt, 'yyyy.MM.dd HH:mm')} | ||||||||||||||||||||||||||
| </span> | ||||||||||||||||||||||||||
| </div> | ||||||||||||||||||||||||||
|
Comment on lines
+56
to
+60
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.
🛡️ 제안된 수정 <div className="flex items-center gap-100">
<span className="font-designer-11r text-text-subtlest whitespace-nowrap">
- {format(notification.createdAt, 'yyyy.MM.dd HH:mm')}
+ {notification.createdAt
+ ? format(notification.createdAt, 'yyyy.MM.dd HH:mm')
+ : '-'}
</span>
</div>📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||||||
| </li> | ||||||||||||||||||||||||||
| ))} | ||||||||||||||||||||||||||
| </ul> | ||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
Uh oh!
There was an error while loading. Please reload this page.