mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-18 06:03:38 +08:00
fix(form): fix useFormItemStatus
get access to window error when sever-side-rendering (#40977)
* fix(form): fix `useFormItemStatus` get access to window error when sever-side-rendering * fix(form): use official doc in `useFormItemStatus` fix(form): replace the string literal by official doc in `useFormItemStatus` warning message. * fix(form): use official doc in warning - Remove unnecessary client check - Use official i18n doc href.
This commit is contained in:
parent
e56184aaa3
commit
849dd97456
@ -13,7 +13,7 @@ const useFormItemStatus: UseFormItemStatus = () => {
|
||||
warning(
|
||||
status !== undefined,
|
||||
'Form.Item',
|
||||
`Form.Item.useStatus should be used under Form.Item component. For more information: ${window.location.protocol}//${window.location.host}/components/form-cn/#Form.Item.useStatus`,
|
||||
'Form.Item.useStatus should be used under Form.Item component. For more information: https://u.ant.design/form-item-usestatus',
|
||||
);
|
||||
|
||||
return { status };
|
||||
|
Loading…
Reference in New Issue
Block a user