mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-27 20:49:53 +08:00
chore: adjust parameter order (#40252)
This commit is contained in:
parent
8970f65faf
commit
199c72a212
@ -19,8 +19,8 @@ interface ErrorEntity {
|
||||
|
||||
function toErrorEntity(
|
||||
error: React.ReactNode,
|
||||
errorStatus: ValidateStatus | undefined,
|
||||
prefix: string,
|
||||
errorStatus?: ValidateStatus,
|
||||
index: number = 0,
|
||||
): ErrorEntity {
|
||||
return {
|
||||
@ -62,9 +62,9 @@ export default function ErrorList({
|
||||
const debounceErrors = useDebounce(errors);
|
||||
const debounceWarnings = useDebounce(warnings);
|
||||
|
||||
const fullKeyList = React.useMemo(() => {
|
||||
const fullKeyList = React.useMemo<ErrorEntity[]>(() => {
|
||||
if (help !== undefined && help !== null) {
|
||||
return [toErrorEntity(help, helpStatus, 'help')];
|
||||
return [toErrorEntity(help, 'help', helpStatus)];
|
||||
}
|
||||
|
||||
return [
|
||||
|
Loading…
Reference in New Issue
Block a user