Skip to content

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

fix build

Jonathan Summers-Muir355630422cc0
diff --git a/www/components/Sections/FunctionsUsecases.tsx b/www/components/Sections/FunctionsUsecases.tsx
index 78376a9d95c..5f8eb7810a9 100644
--- a/www/components/Sections/FunctionsUsecases.tsx
+++ b/www/components/Sections/FunctionsUsecases.tsx
@@ -1,6 +1,6 @@
import { useState } from 'react'
// Import Swiper React components
-import { Button, IconArrowUpRight, Tabs } from '@supabase/ui'
+import { Button, IconArrowUpRight } from '@supabase/ui'
import { Swiper, SwiperSlide } from 'swiper/react'
import CodeBlock from '../CodeBlock/CodeBlock'
import Link from 'next/link'
@@ -65,11 +65,22 @@ function FunctionsUsecases(props: Props) {
(active ? ' text-scale-1100' : ' text-scale-800 group-hover:text-scale-1100 ')
}
>
+ {/*
+ // @ts-ignore */}
{feat.description}
</div>
</button>
)
})}
+ {props.documentation_link && (
+ <Link href={props.documentation_link} as={props.documentation_link}>
+ <a>
+ <Button size="small" className="mt-4" type="default" icon={<IconArrowUpRight />}>
+ Explore documentation
+ </Button>
+ </a>
+ </Link>
+ )}
</div>
</div>
<div className="col-span-12 lg:col-span-7 xl:col-span-6 xl:col-start-7 sbui-tabs--alt">
diff --git a/www/pages/edge-functions/edge-functions.tsx b/www/pages/edge-functions/edge-functions.tsx
index 8b759a10942..3b4dd9e6ae6 100644
--- a/www/pages/edge-functions/edge-functions.tsx
+++ b/www/pages/edge-functions/edge-functions.tsx
@@ -142,16 +142,10 @@ function Database() {
{featureBlocks.map((item) => {
return (
<div className="flex flex-col gap-4 px-8 py-6 border rounded group bg-scale-100 dark:bg-scale-300">
- {item.img ? (
- <img
- src={`/images/product/functions/${item.img}`}
- className="w-12 h-12 rounded-md"
- />
- ) : (
- <div className="flex items-center justify-center w-12 h-12 transition-all border rounded-md bg-scale-300 dark:bg-scale-500 text-scale-1200 group-hover:text-brand-900 group-hover:scale-105">
- {item.icon ? item.icon : <IconCode strokeWidth={2} />}
- </div>
- )}
+ <div className="flex items-center justify-center w-12 h-12 transition-all border rounded-md bg-scale-300 dark:bg-scale-500 text-scale-1200 group-hover:text-brand-900 group-hover:scale-105">
+ {item.icon ? item.icon : <IconCode strokeWidth={2} />}
+ </div>
+
<div>
<h3 className="text-lg text-scale-1200">{item.title}</h3>
<p className="text-sm text-scale-900">{item.description}</p>
@@ -266,33 +260,6 @@ serve(async (req) => {
</div>
</SectionContainer>
- <SectionContainer>
- <div className="col-span-12 mb-10 space-y-12 lg:mb-0 lg:col-span-3 ">
- <div className="grid grid-cols-4 gap-8 rounded">
- {featureBlocks.map((item) => {
- return (
- <div className="flex flex-col gap-4 px-8 py-6 border rounded group bg-scale-100 dark:bg-scale-300">
- {item.img ? (
- <img
- src={`/images/product/functions/${item.img}`}
- className="w-12 h-12 rounded-md"
- />
- ) : (
- <div className="flex items-center justify-center w-12 h-12 transition-all border rounded-md bg-scale-300 dark:bg-scale-500 text-scale-1200 group-hover:text-brand-900 group-hover:scale-105">
- {item.icon ? item.icon : <IconCode strokeWidth={2} />}
- </div>
- )}
- <div>
- <h3 className="text-lg text-scale-1200">{item.title}</h3>
- <p className="text-sm text-scale-900">{item.description}</p>
- </div>
- </div>
- )
- })}
- </div>
- </div>
- </SectionContainer>
-
<SectionContainer className="-mb-16">
<FunctionsUsecases
// @ts-ignore