diff --git a/apps/docs/components/GithubCard.js b/apps/docs/components/GithubCard.tsx similarity index 100% rename from apps/docs/components/GithubCard.js rename to apps/docs/components/GithubCard.tsx diff --git a/apps/docs/components/Sponsors.js b/apps/docs/components/Sponsors.tsx similarity index 89% rename from apps/docs/components/Sponsors.js rename to apps/docs/components/Sponsors.tsx index 0daa82e77d3..dba5ec3ae86 100644 --- a/apps/docs/components/Sponsors.js +++ b/apps/docs/components/Sponsors.tsx @@ -1,3 +1,4 @@ +import Image from 'next/image' import React from 'react' import sponsors from '../data/sponsors.json' @@ -42,15 +43,18 @@ export default function Sponsors() { !!t.transactions.length && (

{t.heading}

-
+
{t.transactions.map((x, index) => (
- Sponsor
diff --git a/apps/docs/pages/oss.tsx b/apps/docs/pages/oss.tsx index e37c40b2340..e7f45002806 100644 --- a/apps/docs/pages/oss.tsx +++ b/apps/docs/pages/oss.tsx @@ -18,20 +18,22 @@ export default function Oss({ meta }) { .sort((a, b) => a.localeCompare(b)) // alphabetical const maintainerPills = ['All'].concat(maintainerTags) - useEffect(async () => { - const reposResponse = await octokit.request('GET /orgs/{org}/repos', { - org: 'supabase', - type: 'public', - per_page: 6, - page: 1, - }) - - setRepos( - reposResponse.data - .filter((r) => !!r.stargazers_count) - .sort((a, b) => b.stargazers_count - a.stargazers_count) - ) - }) + useEffect(() => { + async function fetchOctoData() { + let res = await octokit.request('GET /orgs/{org}/repos', { + org: 'supabase', + type: 'public', + per_page: 6, + page: 1, + }) + setRepos( + res.data + .filter((r) => !!r.stargazers_count) + .sort((a, b) => b.stargazers_count - a.stargazers_count) + ) + } + fetchOctoData() + }, [repos, octokit]) return ( @@ -39,7 +41,7 @@ export default function Oss({ meta }) {
-

Open source

+

Open source

Supabase is an open source company, supporting existing open source tools and communities wherever possible. @@ -62,21 +64,22 @@ export default function Oss({ meta }) {

Community Maintainers

-
    - {maintainerPills.map((x) => ( -
  • setActivePill(x)} - > - {x} -
  • - ))} -
- -
+
+
    + {maintainerPills.map((x) => ( +
  • setActivePill(x)} + > + {x} +
  • + ))} +
+
+
{maintainers .filter((x) => activePill == 'All' || x.tags.includes(activePill)) .sort((a, b) => a.handle.localeCompare(b.handle))