From 3ba4ccc22932652ef913bd58f08500ff4904cffe Mon Sep 17 00:00:00 2001 From: Terry Sutton Date: Tue, 21 Jun 2022 14:37:43 -0230 Subject: [PATCH] Changes button htmltype, changes page to route validate --- .../interfaces/App/RouteValidationWrapper.tsx | 2 +- studio/pages/join/index.tsx | 20 +++---------------- 2 files changed, 4 insertions(+), 18 deletions(-) diff --git a/studio/components/interfaces/App/RouteValidationWrapper.tsx b/studio/components/interfaces/App/RouteValidationWrapper.tsx index 39441b63a05..a0cac70e50f 100644 --- a/studio/components/interfaces/App/RouteValidationWrapper.tsx +++ b/studio/components/interfaces/App/RouteValidationWrapper.tsx @@ -23,7 +23,7 @@ const RouteValidationWrapper: FC = ({ children }) => { // or prompt the user to create an organaization // this is used by database.dev, usually as /new/new-project '/new/[slug]', - '/org/[slug]/join', + '/join', ] /** diff --git a/studio/pages/join/index.tsx b/studio/pages/join/index.tsx index 3f41a06c6ff..f39a5f0f066 100644 --- a/studio/pages/join/index.tsx +++ b/studio/pages/join/index.tsx @@ -33,10 +33,6 @@ const User = () => { invite_id, } = tokenValidationInfo || {} - console.log(slug, token) - console.log('tokenValidationInfo', tokenValidationInfo) - console.log('tokenInfoLoaded', tokenInfoLoaded) - useEffect(() => { let cancel = false @@ -97,7 +93,7 @@ const User = () => { @@ -137,21 +133,11 @@ const User = () => { {authorized_user && !expired_token && email_match && tokenInfoLoaded && (
- -