mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-06 08:37:22 +00:00
Fix editing provider side-effects issues
This commit is contained in:
4 files changed
+251
-144
No files matched your search
@@ -1,20 +1,20 @@
|
||||
import { createContext } from 'react';
|
||||
|
||||
export interface ShakespeareDeployProvider {
|
||||
id: string;
|
||||
name: string;
|
||||
type: 'shakespeare';
|
||||
baseURL?: string;
|
||||
}
|
||||
|
||||
export interface NetlifyProvider {
|
||||
id: string;
|
||||
name: string;
|
||||
type: 'netlify';
|
||||
apiKey: string;
|
||||
baseURL?: string;
|
||||
}
|
||||
|
||||
export interface VercelProvider {
|
||||
id: string;
|
||||
name: string;
|
||||
type: 'vercel';
|
||||
apiKey: string;
|
||||
baseURL?: string;
|
||||
@@ -30,8 +30,7 @@ export interface DeploySettings {
|
||||
export interface DeploySettingsContextType {
|
||||
settings: DeploySettings;
|
||||
updateSettings: (settings: Partial<DeploySettings>) => void;
|
||||
setProvider: (provider: DeployProvider) => void;
|
||||
removeProvider: (id: string) => void;
|
||||
removeProvider: (index: number) => void;
|
||||
setProviders: (providers: DeployProvider[]) => void;
|
||||
isConfigured: boolean;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user