feat: update Google Drive connector UI and authentication handling

This commit is contained in:
Anish Sarkar 2026-03-20 13:39:28 +05:30
parent 75f0975674
commit a27c10a5f5
10 changed files with 29 additions and 48 deletions

View file

@ -2,14 +2,12 @@
import { useAtomValue } from "jotai";
import {
ChevronDown,
ChevronRight,
File,
FileSpreadsheet,
FileText,
FolderClosed,
Image,
Loader2,
Presentation,
RefreshCw,
X,
@ -276,7 +274,7 @@ export const GoogleDriveConfig: FC<ConnectorConfigProps> = ({ connector, onConfi
disabled={pickerLoading || isAuthExpired}
className="bg-slate-400/5 dark:bg-white/5 border-slate-400/20 hover:bg-slate-400/10 dark:hover:bg-white/10 text-xs sm:text-sm h-8 sm:h-9"
>
{pickerLoading && <Loader2 className="size-3.5 mr-1.5 animate-spin" />}
{pickerLoading && <Spinner size="xs" className="mr-1.5" />}
{totalSelected > 0 ? "Change Selection" : "Select from Google Drive"}
</Button>