The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Cleans up comments
Terry Suttonc055b532ae28
diff --git a/studio/components/to-be-cleaned/ModalsDeprecated/InviteMemberModal.tsx b/studio/components/to-be-cleaned/ModalsDeprecated/InviteMemberModal.tsxindex d44bc81f348..e6875c9cec1 100644--- a/studio/components/to-be-cleaned/ModalsDeprecated/InviteMemberModal.tsx+++ b/studio/components/to-be-cleaned/ModalsDeprecated/InviteMemberModal.tsx@@ -7,30 +7,13 @@ import { useOrganizationDetail, useStore } from 'hooks'import { toJS } from 'mobx'import { Member } from 'types'-/**- * Endpoints (delete when finished)- *- * Delete invite- * curl -X DELETE "http://localhost:8080/platform/organizations/:slug/members/invite?invited_id=:id" -H "Authorization: Bearer access_token_jwt"- *- * Get all pending invites- * curl -X GET "http://localhost:8080/platform/organizations/:slug/members/invite" -H "Authorization: Bearer access_token_jwt"- *- * Send an invitation- * curl -X POST "http://localhost:8080/platform/organizations/slug/members/invite" -H "Content-Type: application/json" -d '{"invited_email": "", "owner_id": ""}' -H "Authorization: Bearer ..."- *- * Verify an invitation- * curl -X GET 'http://localhost:8080/platform/organizations/slug/members/join?token=XXX'- *- */-function InviteMemberModal({ organization, members = [], user }: any) {const initialValues = { email: '' }const { ui } = useStore()const { mutateOrgMembers } = useOrganizationDetail(ui.selectedOrganization?.slug || '')const [isOpen, setIsOpen] = useState(false)const [emailAddress, setEmailAddress] = useState('')- const [memberList, setMemberList] = useState([])+ const [memberList, setMemberList] = useState<Member[]>([])const [addMemberLoading, setAddMemberLoading] = useState(false)const { slug: orgSlug } = organizationdiff --git a/studio/pages/org/[slug]/join.tsx b/studio/pages/org/[slug]/join.tsxindex 403e3481c30..f2edea15348 100644--- a/studio/pages/org/[slug]/join.tsx+++ b/studio/pages/org/[slug]/join.tsx@@ -1,5 +1,4 @@import React from 'react'-import { observer } from 'mobx-react-lite'import { useStore, withAuth } from 'hooks'import { Button, IconAlertCircle, Typography } from '@supabase/ui'import { useState } from 'react'@@ -161,4 +160,4 @@ const User = () => {)}-export default withAuth( observer( User ) )+export default withAuth(User)