mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
styles: format code with prettier
This commit is contained in:
@@ -134,7 +134,7 @@ export const UpdatePort = ({ portId }: Props) => {
|
|||||||
if (value === "") {
|
if (value === "") {
|
||||||
field.onChange(0);
|
field.onChange(0);
|
||||||
} else {
|
} else {
|
||||||
field.onChange(parseInt(value, 10));
|
field.onChange(Number.parseInt(value, 10));
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -228,10 +228,7 @@ export const AddDomain = ({
|
|||||||
<FormItem>
|
<FormItem>
|
||||||
<FormLabel>Container Port</FormLabel>
|
<FormLabel>Container Port</FormLabel>
|
||||||
<FormControl>
|
<FormControl>
|
||||||
<NumberInput
|
<NumberInput placeholder={"3000"} {...field} />
|
||||||
placeholder={"3000"}
|
|
||||||
{...field}
|
|
||||||
/>
|
|
||||||
</FormControl>
|
</FormControl>
|
||||||
<FormMessage />
|
<FormMessage />
|
||||||
</FormItem>
|
</FormItem>
|
||||||
|
|||||||
@@ -364,10 +364,7 @@ export const AddDomainCompose = ({
|
|||||||
<FormItem>
|
<FormItem>
|
||||||
<FormLabel>Container Port</FormLabel>
|
<FormLabel>Container Port</FormLabel>
|
||||||
<FormControl>
|
<FormControl>
|
||||||
<NumberInput
|
<NumberInput placeholder={"3000"} {...field} />
|
||||||
placeholder={"3000"}
|
|
||||||
{...field}
|
|
||||||
/>
|
|
||||||
</FormControl>
|
</FormControl>
|
||||||
<FormMessage />
|
<FormMessage />
|
||||||
</FormItem>
|
</FormItem>
|
||||||
|
|||||||
@@ -55,16 +55,15 @@ const NumberInput = React.forwardRef<HTMLInputElement, InputProps>(
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
props.onChange?.(
|
props.onChange?.(
|
||||||
syntheticEvent as unknown as React.ChangeEvent<HTMLInputElement>
|
syntheticEvent as unknown as React.ChangeEvent<HTMLInputElement>,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
}
|
},
|
||||||
);
|
);
|
||||||
NumberInput.displayName = "NumberInput";
|
NumberInput.displayName = "NumberInput";
|
||||||
|
|
||||||
|
|
||||||
export { Input, NumberInput };
|
export { Input, NumberInput };
|
||||||
|
|||||||
Reference in New Issue
Block a user