mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-11-08 11:25:14 +00:00
Certificates section react work
This commit is contained in:
@@ -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[] = [];
|
||||
|
||||
Reference in New Issue
Block a user