Refactor notification page UI components, remove unnecessary imports and update notification card layout

This commit is contained in:
Pattadon 2024-09-13 14:02:43 +07:00
parent 72d72a550e
commit 60c9af3214

View File

@ -19,22 +19,24 @@ export default function Notification() {
<CardContent>
<Card>
<CardContent>
{sampleNotifications.map((notification, index) => (
<div key={index} className="flex items-center justify-between p-4 bg-white border-b border-gray-200">
<div className="flex items-center">
<BellIcon className="w-5 h-5 text-blue-500 mr-3" />
<div>
<p className="text-sm font-medium text-gray-900">
{notification.message}
</p>
<p className="text-xs text-gray-500">{notification.time}</p>
{sampleNotifications.map((notification, _) => (
<div className="flex items-center justify-between p-4 border-b border-gray-200">
<div className="flex items-center">
<BellIcon className="w-5 h-5 text-blue-500 mr-3" />
<div>
<p className="text-sm font-medium ">
{notification.message}
</p>
<p className="text-xs text-gray-500">
{notification.time}
</p>
</div>
</div>
<button className="text-sm text-blue-500 hover:text-blue-600">
Mark as read
</button>
</div>
<button className="text-sm text-blue-500 hover:text-blue-600">
Mark as read
</button>
</div>
))}
))}
</CardContent>
</Card>
</CardContent>