fix: use image label in inputbox

This commit is contained in:
jialin
2025-12-03 16:00:59 +08:00
parent 59eace702b
commit d8f1e95e1a
4 changed files with 47 additions and 38 deletions
@@ -0,0 +1,11 @@
import { createContext, useContext } from 'react';
export interface StepsContextProps {
formValues: Record<string, any>;
}
export const StepsContext = createContext<StepsContextProps>({
formValues: {}
});
export const useStepsContext = () => useContext(StepsContext);
@@ -151,7 +151,8 @@ export const useProviderRegions = () => {
.map((item: any) => {
return {
label: item.description,
value: item.slug,
value: item.description,
os_image: item.slug,
name: item.name,
description: item.description,
vendor: _.camelCase(item.distribution),