Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

update lw archive links with native a tag

Francesco Sansalvadorec05a62eddf2b
diff --git a/apps/www/components/LaunchWeek/8/LWArchive.tsx b/apps/www/components/LaunchWeek/8/LWArchive.tsx
index 3c3979af0f8..ba4aa6eb336 100644
--- a/apps/www/components/LaunchWeek/8/LWArchive.tsx
+++ b/apps/www/components/LaunchWeek/8/LWArchive.tsx
@@ -1,17 +1,8 @@
import React from 'react'
import { StyledArticleBadge } from './Releases/components'
import Image from 'next/image'
-import { useRouter } from 'next/router'
const LWArchive = () => {
- const router = useRouter()
-
- const handleNavigate = (link: string) => {
- if (typeof window === 'undefined') return
- window.scrollTo(0, 0)
- router.push(link)
- }
-
return (
<div className="w-full text-white flex flex-col lg:flex-row gap-8 lg:gap-16">
<div className="lg:basis-1/3 flex flex-col items-start gap-4">
@@ -22,8 +13,8 @@ const LWArchive = () => {
</p>
</div>
<div className="lg:basis-2/3 relative grid grid-cols-1 xl:grid-cols-2 gap-4">
- <button
- onClick={() => handleNavigate('/launch-week/6')}
+ <a
+ href="/launch-week/6"
className="relative h-[160px] group w-full rounded-md md:rounded-lg transition-transform bg-[#030A0C] flex items-center justify-center border border-[#111618] hover:border-brand-800 overflow-hidden"
>
<span className="relative z-10 stroke-text inline-block text-transparent bg-clip-text bg-gradient-to-b from-scale-1200 to-scale-1000 text-7xl drop-shadow-lg">
@@ -37,9 +28,9 @@ const LWArchive = () => {
objectFit="cover"
/>
</div>
- </button>
- <button
- onClick={() => handleNavigate('/launch-week/7')}
+ </a>
+ <a
+ href="/launch-week/7"
className="relative h-[160px] group w-full rounded-md md:rounded-lg transition-transform bg-[#030A0C] flex items-center justify-center border border-[#111718] hover:border-brand-1200 overflow-hidden"
>
<span className="relative z-10 stroke-text inline-block text-transparent bg-clip-text bg-gradient-to-b from-scale-1200 to-scale-1000 text-7xl drop-shadow-lg">
@@ -53,7 +44,7 @@ const LWArchive = () => {
objectFit="cover"
/>
</div>
- </button>
+ </a>
</div>
</div>
)