The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
fix: typescript errors
Isaiah Hamiltond63acaf7a858
diff --git a/apps/www/components/Sponsors.tsx b/apps/www/components/Sponsors.tsxindex bd7ca85c3e1..ec088c9716b 100644--- a/apps/www/components/Sponsors.tsx+++ b/apps/www/components/Sponsors.tsx@@ -7,32 +7,32 @@ export default function Sponsors() {{tier_name: '$5,000 a month',heading: 'Enterprise: $5,000 per month',- transactions: sponsors.filter((x: any) => x.tier == '$5,000 a month'),+ transactions: sponsors.filter((x) => x.tier == '$5,000 a month'),},{tier_name: '$2,500 a month',heading: 'Agency: $2,500 per month',- transactions: sponsors.filter((x: any) => x.tier == '$2,500 a month'),+ transactions: sponsors.filter((x) => x.tier == '$2,500 a month'),},{tier_name: '$1,000 a month',heading: 'Startup: $1,000 per month',- transactions: sponsors.filter((x: any) => x.tier == '$1,000 a month'),+ transactions: sponsors.filter((x) => x.tier == '$1,000 a month'),},{tier_name: '$49 a month',heading: 'Evangelist: $49 per month',- transactions: sponsors.filter((x: any) => x.tier == '$49 a month'),+ transactions: sponsors.filter((x) => x.tier == '$49 a month'),},{tier_name: '$19 a month',heading: 'Supporter: $19 per month',- transactions: sponsors.filter((x: any) => x.tier == '$19 a month'),+ transactions: sponsors.filter((x) => x.tier == '$19 a month'),},{tier_name: '$5 a month',heading: 'Contributor: $5 per month',- transactions: sponsors.filter((x: any) => x.tier == '$5 a month'),+ transactions: sponsors.filter((x) => x.tier == '$5 a month'),},]diff --git a/apps/www/pages/oss.tsx b/apps/www/pages/oss.tsxindex 30c151738aa..b9aafe2b16d 100644--- a/apps/www/pages/oss.tsx+++ b/apps/www/pages/oss.tsx@@ -1,5 +1,5 @@import { useState, useEffect } from 'react'-import { Octokit } from '@octokit/core'+import { Octokit } from 'octokit'import DefaultLayout from '~/components/Layouts/Default'import SectionContainer from '~/components/Layouts/SectionContainer'import maintainers from '../data/maintainers.json'@@ -10,7 +10,7 @@ export default function Oss() {const octokit = new Octokit()const [activePill, setActivePill] = useState('All')- const [repos, setRepos] = useState([])+ const [repos, setRepos] = useState([{}])const maintainerTags = maintainers.reduce((acc: any, x: any) => acc.concat(x.tags), []) // get all tags@@ -20,17 +20,13 @@ export default function Oss() {useEffect(() => {async function fetchOctoData() {- let res = await octokit.request('GET /orgs/{org}/repos', {+ const res = await octokit.request('GET /orgs/{org}/repos', {org: 'supabase',type: 'public',per_page: 6,page: 1,})- setRepos(- res.data- .filter((r: any) => !!r.stargazers_count)- .sort((a: any, b: any) => b.stargazers_count - a.stargazers_count)- )+ setRepos(res.data)}fetchOctoData()}, [])