mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-05 16:23:36 +00:00
Remove useless supportsOAuth property
This commit is contained in:
2 files changed
+1
-5
No files matched your search
@@ -410,7 +410,6 @@ const newProviderOAuth = useNewProviderOAuth();
|
||||
apiKeyLabel: 'Access Token',
|
||||
apiKeyURL: 'https://provider.com/settings/tokens',
|
||||
proxy: true,
|
||||
supportsOAuth: true,
|
||||
}
|
||||
|
||||
// In the render logic, add the OAuth hook to the switch:
|
||||
|
||||
@@ -45,7 +45,6 @@ interface PresetProvider {
|
||||
apiKeyLabel?: string;
|
||||
apiKeyURL?: string;
|
||||
proxy?: boolean;
|
||||
supportsOAuth?: boolean;
|
||||
}
|
||||
|
||||
interface SortableProviderItemProps {
|
||||
@@ -206,7 +205,6 @@ const PRESET_PROVIDERS: PresetProvider[] = [
|
||||
apiKeyLabel: 'Personal Access Token',
|
||||
apiKeyURL: 'https://app.netlify.com/user/applications#personal-access-tokens',
|
||||
proxy: true,
|
||||
supportsOAuth: true,
|
||||
},
|
||||
{
|
||||
id: 'vercel',
|
||||
@@ -216,7 +214,6 @@ const PRESET_PROVIDERS: PresetProvider[] = [
|
||||
apiKeyLabel: 'Access Token',
|
||||
apiKeyURL: 'https://vercel.com/account/tokens',
|
||||
proxy: true,
|
||||
supportsOAuth: true,
|
||||
},
|
||||
];
|
||||
|
||||
@@ -492,7 +489,7 @@ export function DeploySettings() {
|
||||
</Link>
|
||||
</Button>
|
||||
</div>
|
||||
) : preset.supportsOAuth && isOAuthConfigured ? (
|
||||
) : isOAuthConfigured ? (
|
||||
// Show OAuth button if OAuth is configured
|
||||
<div className="space-y-3">
|
||||
<Button
|
||||
|
||||
Reference in new issue
Block a user