Working on ui

This commit is contained in:
Owen
2026-04-16 16:30:28 -07:00
parent a9d68bd0cf
commit c4308aaa69
3 changed files with 39 additions and 20 deletions

View File

@@ -26,19 +26,21 @@ type HealthCheckFormFieldsProps = {
onFieldChange?: (fieldName: string, value: any) => void;
showNameField?: boolean;
hideEnabledField?: boolean;
watchedEnabled?: boolean;
watchedMode?: string;
};
export function HealthCheckFormFields({
form,
onFieldChange,
showNameField,
hideEnabledField
hideEnabledField,
watchedEnabled,
watchedMode
}: HealthCheckFormFieldsProps) {
const t = useTranslations();
const watchedEnabled = form.watch("hcEnabled");
const showFields = hideEnabledField || watchedEnabled;
const watchedMode = form.watch("hcMode");
const handleChange = (fieldName: string, value: any, fieldOnChange: (v: any) => void) => {
fieldOnChange(value);