Skip to content

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

chore: add 'all' option to blog index

Jonathan Summers-Muir099de7380e76
diff --git a/www/pages/blog.tsx b/www/pages/blog.tsx
index 607d717d7ef..5e254414378 100644
--- a/www/pages/blog.tsx
+++ b/www/pages/blog.tsx
@@ -62,7 +62,7 @@ function Blog(props: any) {
}, [category])
useEffect(() => {
- return props.categories.push('all')
+ return props.categories.unshift('all')
}, [])
// append 'all' category
@@ -96,7 +96,7 @@ function Blog(props: any) {
<div className="mx-auto ">
<div className="grid grid-cols-12">
<div className="col-span-12 lg:col-span-12">
- <Tabs scrollable size="medium" onChange={setCategory}>
+ <Tabs scrollable size="medium" onChange={setCategory} defaultActiveId={'all'}>
{props.categories.map((categoryId: string) => (
<Tabs.Panel id={categoryId} label={categoryId}>
{/* <p>{categoryId}</p> */}