fix: select gpu stype when creating cluster from gpu service
This commit is contained in:
@@ -1,13 +1,15 @@
|
||||
import { createContext, useContext } from 'react';
|
||||
|
||||
export interface StepsContextProps {
|
||||
presetClusterType?: 'model' | 'gpu';
|
||||
formValues: Record<string, any>;
|
||||
systemConfig?: Record<string, any>;
|
||||
}
|
||||
|
||||
export const StepsContext = createContext<StepsContextProps>({
|
||||
formValues: {},
|
||||
systemConfig: {}
|
||||
systemConfig: {},
|
||||
presetClusterType: undefined
|
||||
});
|
||||
|
||||
export const useStepsContext = () => useContext(StepsContext);
|
||||
|
||||
Reference in New Issue
Block a user