Certificates section react work

This commit is contained in:
Jamie Curnow
2025-10-26 00:28:39 +10:00
parent 5b7013b8d5
commit bb6c9c8daf
24 changed files with 596 additions and 121 deletions

View File

@@ -18,14 +18,16 @@ interface Props {
dnsProviderWildcardSupported?: boolean;
name?: string;
label?: string;
onChange?: (domains: string[]) => void;
}
export function DomainNamesField({
name = "domainNames",
label = "domain-names",
id = "domainNames",
maxDomains,
isWildcardPermitted = true,
dnsProviderWildcardSupported = true,
isWildcardPermitted = false,
dnsProviderWildcardSupported = false,
onChange,
}: Props) {
const { setFieldValue } = useFormikContext();
@@ -34,6 +36,7 @@ export function DomainNamesField({
return i.value;
});
setFieldValue(name, doms);
onChange?.(doms);
};
const helperTexts: ReactNode[] = [];