The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Move to .tsx
Terry Suttonecfa2d2f46e9
diff --git a/studio/components/interfaces/Authentication/Users/InviteUserModal.tsx b/studio/components/interfaces/Authentication/Users/InviteUserModal.tsxindex 23185950f55..71b6501fb07 100644--- a/studio/components/interfaces/Authentication/Users/InviteUserModal.tsx+++ b/studio/components/interfaces/Authentication/Users/InviteUserModal.tsx@@ -12,9 +12,9 @@ const InviteUserModal = () => {const inputRef = useRef<any>(null)const { ui } = useStore()- const [visible, setVisible] = useState<boolean>(false)- const [loading, setLoading] = useState<boolean>(false)- const [emailValue, setEmailValue] = useState<string>('')+ const [visible, setVisible] = useState(false)+ const [loading, setLoading] = useState(false)+ const [emailValue, setEmailValue] = useState('')function handleToggle() {// reset data before showing modal againdiff --git a/studio/components/to-be-cleaned/ModalsDeprecated/InviteMemberModal.js b/studio/components/to-be-cleaned/ModalsDeprecated/InviteMemberModal.tsxsimilarity index 95%rename from studio/components/to-be-cleaned/ModalsDeprecated/InviteMemberModal.jsrename to studio/components/to-be-cleaned/ModalsDeprecated/InviteMemberModal.tsxindex f872bf7e549..e9002245880 100644--- a/studio/components/to-be-cleaned/ModalsDeprecated/InviteMemberModal.js+++ b/studio/components/to-be-cleaned/ModalsDeprecated/InviteMemberModal.tsx@@ -89,7 +89,7 @@ function InviteMemberModal({ organization, members = [] }) {><div className="w-full py-4 space-y-4"><Modal.Content>- <div className="text-center">{PageState.emailAddress}+ <div className="text-center"><Inputicon={<IconMail />}autoFocus@@ -107,7 +107,7 @@ function InviteMemberModal({ organization, members = [] }) {<ButtononClick={addMember}loading={PageState.addMemberLoading}- disabled={PageState.addBtnDisable}+ disabled={!PageState.emailIsValid()}block>Invite new member