mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-10-07 02:58:11 +00:00
Merge branch 'main' of https://github.com/supermemoryai/supermemory
This commit is contained in:
commit
6efac9f4f5
2 changed files with 2 additions and 33 deletions
|
|
@ -319,10 +319,7 @@ export function ConnectionsTabContent() {
|
|||
>
|
||||
<Button
|
||||
className="justify-start h-auto p-4 bg-foreground/5 hover:bg-foreground/10 border-foreground/10 w-full cursor-pointer"
|
||||
disabled={
|
||||
provider === "google-drive" ||
|
||||
addConnectionMutation.isPending
|
||||
}
|
||||
disabled={addConnectionMutation.isPending}
|
||||
onClick={() => {
|
||||
addConnectionMutation.mutate(provider as ConnectorProvider)
|
||||
}}
|
||||
|
|
@ -334,11 +331,6 @@ export function ConnectionsTabContent() {
|
|||
<div className="text-sm text-foreground/60 mt-0.5">
|
||||
{config.description}
|
||||
</div>
|
||||
{provider === "google-drive" && (
|
||||
<div className="text-xs text-muted-foreground/80 mt-1">
|
||||
Temporarily disabled. This will be resolved soon.
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
</Button>
|
||||
</motion.div>
|
||||
|
|
|
|||
|
|
@ -280,12 +280,6 @@ export function IntegrationsView() {
|
|||
throw new Error("This integration is coming soon!")
|
||||
}
|
||||
|
||||
if (provider === "google-drive") {
|
||||
throw new Error(
|
||||
"Google Drive connections are temporarily disabled. This will be resolved soon.",
|
||||
)
|
||||
}
|
||||
|
||||
if (!canAddConnection && !isProUser) {
|
||||
throw new Error(
|
||||
"Free plan doesn't include connections. Upgrade to Pro for unlimited connections.",
|
||||
|
|
@ -896,13 +890,6 @@ export function IntegrationsView() {
|
|||
</div>
|
||||
)}
|
||||
</div>
|
||||
) : provider === "google-drive" ? (
|
||||
<div className="flex items-center gap-1 mt-1">
|
||||
<div className="w-2 h-2 bg-muted-foreground rounded-full" />
|
||||
<span className="text-xs text-muted-foreground font-medium">
|
||||
Temporarily Disabled
|
||||
</span>
|
||||
</div>
|
||||
) : (
|
||||
<div className="flex items-center gap-1 mt-1">
|
||||
<div className="w-2 h-2 bg-muted-foreground rounded-full" />
|
||||
|
|
@ -932,15 +919,6 @@ export function IntegrationsView() {
|
|||
{config.description}
|
||||
</p>
|
||||
|
||||
{!isConnected &&
|
||||
!isMoreComing &&
|
||||
provider === "google-drive" && (
|
||||
<p className="text-xs text-muted-foreground/80 mb-3 leading-relaxed">
|
||||
Google Drive connections are temporarily disabled.
|
||||
This will be resolved soon.
|
||||
</p>
|
||||
)}
|
||||
|
||||
{isConnected && !isMoreComing && (
|
||||
<div className="space-y-1">
|
||||
{connection?.email && (
|
||||
|
|
@ -1045,9 +1023,8 @@ export function IntegrationsView() {
|
|||
</DropdownMenu>
|
||||
|
||||
<Button
|
||||
className="flex-shrink-0 disabled:cursor-not-allowed w-20 justify-center"
|
||||
className="shrink-0 disabled:cursor-not-allowed w-20 justify-center"
|
||||
disabled={
|
||||
provider === "google-drive" ||
|
||||
addConnectionMutation.isPending ||
|
||||
connectingProvider === provider ||
|
||||
!isProUser
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue