From c50b9868a195130b036c110ebed57995cd59499f Mon Sep 17 00:00:00 2001
From: Isaiah Hamilton <70828596+Isaiah-Hamilton@users.noreply.github.com>
Date: Sun, 8 May 2022 23:09:39 -0400
Subject: [PATCH] chore: use next/link in nav
---
apps/www/components/Nav/Developers.tsx | 50 ++++----
apps/www/components/Nav/Product.tsx | 50 ++++----
apps/www/components/Nav/index.tsx | 151 +++++++++++++------------
3 files changed, 125 insertions(+), 126 deletions(-)
diff --git a/apps/www/components/Nav/Developers.tsx b/apps/www/components/Nav/Developers.tsx
index 5aab3ce36f9..9840c0a060d 100644
--- a/apps/www/components/Nav/Developers.tsx
+++ b/apps/www/components/Nav/Developers.tsx
@@ -3,6 +3,7 @@ import DevelopersData from 'data/Developers.json'
import AnnouncementsData from 'data/Announcements.json'
import { useRouter } from 'next/router'
import Image from 'next/image'
+import Link from 'next/link'
type Props = {
text: string
@@ -37,13 +38,11 @@ const Developers = () => {
)
return url ? (
-
- {content}
-
+
+
+ {content}
+
+
) : (
{
diff --git a/apps/www/components/Nav/Product.tsx b/apps/www/components/Nav/Product.tsx
index aad606389d0..d398f72eb8c 100644
--- a/apps/www/components/Nav/Product.tsx
+++ b/apps/www/components/Nav/Product.tsx
@@ -5,6 +5,7 @@ import { useRouter } from 'next/router'
import ProductIcon from '../ProductIcon'
import { Badge } from '@supabase/ui'
import Image from 'next/image'
+import Link from 'next/link'
const Product = () => {
const { basePath } = useRouter()
@@ -30,13 +31,11 @@ const Product = () => {
)
return (
url && (
-
- {content}
-
+
+
+ {content}
+
+
)
)
})
@@ -56,25 +55,24 @@ const Product = () => {
}
return (
-
-
-
-
-
-
- {caseStudy.title}
-
-
{caseStudy.description}
-
-
+
+
+
+
+
+
+
+ {caseStudy.title}
+
+
{caseStudy.description}
+
+
+
)
})}
diff --git a/apps/www/components/Nav/index.tsx b/apps/www/components/Nav/index.tsx
index 92e457c9c52..8cf596bcd16 100644
--- a/apps/www/components/Nav/index.tsx
+++ b/apps/www/components/Nav/index.tsx
@@ -84,13 +84,11 @@ const Nav = () => {
)
return url ? (
-
- {content}
-
+
+
+ {content}
+
+
) : (
{
}
width={124}
height={24}
- alt="Logo"
+ alt="Supabase Logo"
/>
@@ -218,26 +216,28 @@ const Nav = () => {
onClick={() => handleToggle(() => setOpenDevelopers(!openDevelopers))}
active={openDevelopers}
/>
-
- Pricing
-
-
- Blog
-
+
+
+ Pricing
+
+
+
+
+ Blog
+
+
{/* */}
@@ -324,46 +328,45 @@ const Nav = () => {
{/* */}