mirror of
https://github.com/ant-design/ant-design.git
synced 2025-06-07 09:26:06 +08:00
type: add React.ReactNode (#38404)
This commit is contained in:
parent
66e4b1c91c
commit
45b078a1ad
@ -11,7 +11,7 @@ import useRemovePasswordTimeout from './hooks/useRemovePasswordTimeout';
|
||||
import type { InputProps, InputRef } from './Input';
|
||||
import Input from './Input';
|
||||
|
||||
const defaultIconRender = (visible: boolean) =>
|
||||
const defaultIconRender = (visible: boolean): React.ReactNode =>
|
||||
visible ? <EyeOutlined /> : <EyeInvisibleOutlined />;
|
||||
|
||||
type VisibilityToggle = {
|
||||
|
Loading…
Reference in New Issue
Block a user