From c4d4cdebef50b2cf4b22ec3389c9795ed0bb01ad Mon Sep 17 00:00:00 2001 From: Jonathan Summers-Muir Date: Sat, 5 Mar 2022 19:35:07 +0000 Subject: [PATCH] chore: updated to latest @supabase/ui --- .../AuthWidget/AuthComponentExample.tsx | 52 +- www/components/AuthWidget/AuthWidget.tsx | 6 +- www/components/Layouts/Default.tsx | 2 +- www/package-lock.json | 3117 +++++++++-------- www/package.json | 9 +- www/pages/pricing/index.tsx | 7 +- www/styles/index.css | 22 +- www/tailwind.config.js | 50 +- 8 files changed, 1765 insertions(+), 1500 deletions(-) diff --git a/www/components/AuthWidget/AuthComponentExample.tsx b/www/components/AuthWidget/AuthComponentExample.tsx index d4a0e08f0cf..e2ad337d9bd 100644 --- a/www/components/AuthWidget/AuthComponentExample.tsx +++ b/www/components/AuthWidget/AuthComponentExample.tsx @@ -4,7 +4,7 @@ import { Badge, Button, Card, - Auth, + // Auth, Space, Tabs, Typography, @@ -28,31 +28,31 @@ function AuthComponentExample() { const { isDarkMode } = useTheme() const { basePath } = useRouter() - // store API swiper instance - const [imageSwiper, setImageSwiper] = useState(undefined) - const [imageSwiperActiveIndex, setImageSwiperActiveIndex] = useState(0) + // // store API swiper instance + // const [imageSwiper, setImageSwiper] = useState(undefined) + // const [imageSwiperActiveIndex, setImageSwiperActiveIndex] = useState(0) - function handleNavChange(e: number) { - console.log(e) - setImageSwiperActiveIndex(e) - // @ts-ignore - imageSwiper.slideTo(e) - } + // function handleNavChange(e: number) { + // console.log(e) + // setImageSwiperActiveIndex(e) + // // @ts-ignore + // imageSwiper.slideTo(e) + // } - const AuthContainer = (props: any) => { - const { user } = Auth.useUser() - if (user) { - return ( - <> - Signed in: {user.email} - - - ) - } - return props.children - } + // const AuthContainer = (props: any) => { + // const { user } = Auth.useUser() + // if (user) { + // return ( + // <> + // Signed in: {user.email} + // + // + // ) + // } + // return props.children + // } return (
@@ -194,11 +194,11 @@ function AuthComponentExample() {
- + {/* - + */}
diff --git a/www/components/AuthWidget/AuthWidget.tsx b/www/components/AuthWidget/AuthWidget.tsx index 308896e195a..79e917bbb32 100644 --- a/www/components/AuthWidget/AuthWidget.tsx +++ b/www/components/AuthWidget/AuthWidget.tsx @@ -5,7 +5,7 @@ import DefaultLayout from '~/components/Layouts/Default' import CodeBlock from '~/components/CodeBlock/CodeBlock' import { Button, - Auth, + // Auth, Card, Checkbox, Divider, @@ -88,13 +88,13 @@ function AuthPage() { {companyName} - + /> */} diff --git a/www/components/Layouts/Default.tsx b/www/components/Layouts/Default.tsx index 73b66bb4d34..f960816a169 100644 --- a/www/components/Layouts/Default.tsx +++ b/www/components/Layouts/Default.tsx @@ -24,7 +24,7 @@ const DefaultLayout = (props: Props) => { return ( <> {!hideHeader &&