From efb2c94d56d64bcb2c6ed35888e5499e68945ee0 Mon Sep 17 00:00:00 2001 From: kemal Date: Tue, 8 Sep 2026 09:35:40 +0100 Subject: [PATCH] style: some touch ups --- .../OAuthApps/Consent/AuthorizingAsCard.tsx | 47 +++++++------------ .../Consent/OAuthAppsAuthorizeScreen.tsx | 26 +++++----- .../OAuthApps/Consent/ScopeGroupCard.tsx | 4 +- 3 files changed, 35 insertions(+), 42 deletions(-) diff --git a/apps/studio/components/interfaces/Organization/OAuthApps/Consent/AuthorizingAsCard.tsx b/apps/studio/components/interfaces/Organization/OAuthApps/Consent/AuthorizingAsCard.tsx index 3a214b55981..a1f4a4e1643 100644 --- a/apps/studio/components/interfaces/Organization/OAuthApps/Consent/AuthorizingAsCard.tsx +++ b/apps/studio/components/interfaces/Organization/OAuthApps/Consent/AuthorizingAsCard.tsx @@ -1,56 +1,45 @@ -import { LogOut, RefreshCcw } from 'lucide-react' -import { Button } from 'ui' +import { LogOut } from 'lucide-react' +import { Button, Tooltip, TooltipContent, TooltipTrigger } from 'ui' export interface AuthorizingAsCardProps { email: string organizationSlug: string onSignOut: () => void - showSwitcher?: boolean - onSwitchOrg?: () => void } export const AuthorizingAsCard = ({ email, organizationSlug, onSignOut, - showSwitcher = false, - onSwitchOrg, }: AuthorizingAsCardProps) => { return (
-
+
Authorizing as {email} -
Organization - - {organizationSlug} - {showSwitcher && ( -
-

+

This grant acts as you, it can never do more than your role in this organization allows.

diff --git a/apps/studio/components/interfaces/Organization/OAuthApps/Consent/OAuthAppsAuthorizeScreen.tsx b/apps/studio/components/interfaces/Organization/OAuthApps/Consent/OAuthAppsAuthorizeScreen.tsx index 111a9d74c09..dff9e8f5aa2 100644 --- a/apps/studio/components/interfaces/Organization/OAuthApps/Consent/OAuthAppsAuthorizeScreen.tsx +++ b/apps/studio/components/interfaces/Organization/OAuthApps/Consent/OAuthAppsAuthorizeScreen.tsx @@ -171,8 +171,6 @@ export const OAuthAppsAuthorizeScreen = ({ email={identity.email} organizationSlug={memberOrg.slug} onSignOut={handleSignOut} - showSwitcher={identity.organizations.length > 1} - onSwitchOrg={handleSwitchOrg} /> {hasProjects ? ( @@ -198,7 +196,7 @@ export const OAuthAppsAuthorizeScreen = ({ )} -
+