The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
refactor(announcement): switch to <a> tag
Greg Richardson5aa8f719ffa0
diff --git a/packages/ui/src/layout/banners/Announcement.tsx b/packages/ui/src/layout/banners/Announcement.tsxindex 7e6b68ba622..77904f1af3f 100644--- a/packages/ui/src/layout/banners/Announcement.tsx+++ b/packages/ui/src/layout/banners/Announcement.tsx@@ -51,16 +51,15 @@ const Announcement = ({return setHidden(true)}- function handleLink() {- window.location.assign(announcement.link)- }-// Always show if on LW sectionif (!isLaunchWeekSection && hidden) {return null} else {return (- <div onClick={handleLink} className={['relative w-full cursor-pointer', className].join(' ')} role="link" tabIndex={0}>+ <a+ href={announcement.link}+ className={['relative w-full cursor-pointer', className].join(' ')}+ >{!isLaunchWeekSection && (<divclassName="absolute right-4 flex h-full items-center opacity-50 transition-opacity hover:opacity-100"@@ -70,7 +69,7 @@ const Announcement = ({</div>)}{children}- </div>+ </a>)}}