diff --git a/apps/deploy-web/src/components/authorizations/AllowanceModal.tsx b/apps/deploy-web/src/components/authorizations/AllowanceModal.tsx index c783f32cc..2de36afd0 100644 --- a/apps/deploy-web/src/components/authorizations/AllowanceModal.tsx +++ b/apps/deploy-web/src/components/authorizations/AllowanceModal.tsx @@ -144,7 +144,7 @@ export const AllowanceModal: React.FunctionComponent = ({ editingAllowanc min={0} step={0.000001} max={denomData?.inputMax} - startIcon={denomData?.label} + startIcon={{denomData?.label}} /> ); }} diff --git a/apps/deploy-web/src/components/authorizations/GrantModal.tsx b/apps/deploy-web/src/components/authorizations/GrantModal.tsx index c2eb95418..f4c3749e4 100644 --- a/apps/deploy-web/src/components/authorizations/GrantModal.tsx +++ b/apps/deploy-web/src/components/authorizations/GrantModal.tsx @@ -188,7 +188,7 @@ export const GrantModal: React.FunctionComponent = ({ editingGrant, addre min={0} step={0.000001} max={denomData?.inputMax} - startIcon={denomData?.label} + startIcon={{denomData?.label}} className="ml-4 flex-grow" /> ); diff --git a/apps/deploy-web/src/components/sdl/CpuFormControl.tsx b/apps/deploy-web/src/components/sdl/CpuFormControl.tsx index a100af274..f80bcb5d3 100644 --- a/apps/deploy-web/src/components/sdl/CpuFormControl.tsx +++ b/apps/deploy-web/src/components/sdl/CpuFormControl.tsx @@ -56,7 +56,7 @@ export const CpuFormControl: React.FunctionComponent = ({ control, servic min={0.1} step={0.1} max={validationConfig.maxCpuAmount} - className="ml-4 w-[100px]" + inputClassName="ml-4 w-[100px]" /> diff --git a/apps/deploy-web/src/components/sdl/GpuFormControl.tsx b/apps/deploy-web/src/components/sdl/GpuFormControl.tsx index 1e42e9134..b3e459eb6 100644 --- a/apps/deploy-web/src/components/sdl/GpuFormControl.tsx +++ b/apps/deploy-web/src/components/sdl/GpuFormControl.tsx @@ -108,7 +108,7 @@ export const GpuFormControl: React.FunctionComponent = ({ gpuModels, cont min={1} step={1} max={validationConfig.maxGpuAmount} - className="w-[100px]" + inputClassName="w-[100px]" /> )} @@ -122,6 +122,7 @@ export const GpuFormControl: React.FunctionComponent = ({ gpuModels, cont step={1} color="secondary" aria-label="GPUs" + className="pt-2" onValueChange={newValue => field.onChange(newValue)} /> )} diff --git a/apps/deploy-web/src/components/sdl/ImageSelect.tsx b/apps/deploy-web/src/components/sdl/ImageSelect.tsx index 0db8e99af..6326fc4dd 100644 --- a/apps/deploy-web/src/components/sdl/ImageSelect.tsx +++ b/apps/deploy-web/src/components/sdl/ImageSelect.tsx @@ -167,11 +167,11 @@ export const ImageSelect: React.FunctionComponent = ({ control, currentSe onResizeCapture={undefined} >
    - {filteredGpuTemplates.map(template => ( + {filteredGpuTemplates.map((template, i) => (
  • _onSelectTemplate(template)} onMouseOver={() => { setHoveredTemplate(template); diff --git a/apps/deploy-web/src/components/sdl/MemoryFormControl.tsx b/apps/deploy-web/src/components/sdl/MemoryFormControl.tsx index 0b7629476..a2fe7bd76 100644 --- a/apps/deploy-web/src/components/sdl/MemoryFormControl.tsx +++ b/apps/deploy-web/src/components/sdl/MemoryFormControl.tsx @@ -35,7 +35,7 @@ export const MemoryFormControl: React.FunctionComponent = ({ control, ser control={control} name={`services.${serviceIndex}.profile.ram`} render={({ field, fieldState }) => ( - +
    @@ -68,7 +68,7 @@ export const MemoryFormControl: React.FunctionComponent = ({ control, ser onChange={event => field.onChange(parseFloat(event.target.value))} min={1} step={1} - className="w-[100px]" + inputClassName="w-[100px]" /> = ({ control, ser defaultValue="" render={({ field }) => ( = ({ currentServi onChange={event => field.onChange(parseFloat(event.target.value))} min={1} step={1} - className="w-[100px]" + inputClassName="w-[100px]" /> = ({ currentServi defaultValue="" render={({ field }) => ( - - + + diff --git a/apps/deploy-web/src/utils/sdl/sdlImport.ts b/apps/deploy-web/src/utils/sdl/sdlImport.ts index f213e5b00..dc803cc7b 100644 --- a/apps/deploy-web/src/utils/sdl/sdlImport.ts +++ b/apps/deploy-web/src/utils/sdl/sdlImport.ts @@ -67,7 +67,7 @@ export const importSimpleSdl = (yamlStr: string) => { const _expose: ExposeType = { id: nanoid(), port: expose.port, - as: expose.as, + as: expose.as || 80, proto: expose.proto === "tcp" ? expose.proto : "http", global: !!isGlobal, to: expose.to.filter(t => t.global === undefined).map(t => ({ id: nanoid(), value: t.service })), diff --git a/packages/ui/components/input.tsx b/packages/ui/components/input.tsx index cb92f6994..83629b5d4 100644 --- a/packages/ui/components/input.tsx +++ b/packages/ui/components/input.tsx @@ -16,9 +16,8 @@ const FormInput = React.forwardRef(({ classNam const { error } = useFormField(); return ( - {label && {label}} - + {description && {description}} @@ -47,7 +46,7 @@ const Input = React.forwardRef( const formField = useFormField(); return ( -
    +
    {label && (formField.id ? {label} : )}
    {startIcon &&
    {startIcon}
    }