chore: disable supabase

This commit is contained in:
nathan 2024-04-05 13:58:40 +08:00
parent 587de161f6
commit 5ceb132b0b

View File

@ -117,13 +117,14 @@ class CloudTypeSwitcher extends StatelessWidget {
Widget build(BuildContext context) { Widget build(BuildContext context) {
final isDevelopMode = integrationMode().isDevelop; final isDevelopMode = integrationMode().isDevelop;
// Only show the appflowyCloudDevelop in develop mode // Only show the appflowyCloudDevelop in develop mode
final values = AuthenticatorType.values final values = AuthenticatorType.values.where((element) {
.where( // Supabase will going to be removed in the future
(element) => if (element == AuthenticatorType.supabase) {
isDevelopMode || return false;
element != AuthenticatorType.appflowyCloudDevelop, }
)
.toList(); return isDevelopMode || element != AuthenticatorType.appflowyCloudDevelop;
}).toList();
return PlatformExtension.isDesktopOrWeb return PlatformExtension.isDesktopOrWeb
? AppFlowyPopover( ? AppFlowyPopover(
direction: PopoverDirection.bottomWithRightAligned, direction: PopoverDirection.bottomWithRightAligned,