Add link to changelog notificaiton

This commit is contained in:
Joshen Lim authored and Div Arora committed 2022-09-23 11:21:08 +08:00
1 parent 55989b4809
commit cc2cc4585c
1 file changed
+14 -7
@@ -10,6 +10,7 @@ import {
ViolatedLimit,
} from '@supabase/shared-types/out/notifications'
import { IconArrowRight, IconExternalLink } from '@supabase/ui'
import Link from 'next/link'
export const formatNotificationText = (project: Project, notification: Notification) => {
const projectName = project.name
@@ -85,13 +86,19 @@ export const formatNotificationText = (project: Project, notification: Notificat
<p className="text-sm">{upgrade.name}</p>
<IconArrowRight size={12} strokeWidth={2} />
<p className="text-sm">{upgrade.version_to}</p>
<div className="!ml-4">
<IconExternalLink
className="cursor-pointer text-scale-1000 hover:text-scale-1200 transition"
size={12}
strokeWidth={2}
/>
</div>
{upgrade.changelog_link && (
<div className="!ml-4">
<Link href={upgrade.changelog_link}>
<a>
<IconExternalLink
className="cursor-pointer text-scale-1000 hover:text-scale-1200 transition"
size={12}
strokeWidth={2}
/>
</a>
</Link>
</div>
)}
</div>
</li>
))}