mirror of
https://github.com/zhigang1992/react.git
synced 2026-05-07 18:37:31 +08:00
chore: avoid memo override exported component displayName
This commit is contained in:
@@ -4,7 +4,7 @@ import useTheme from '../styles/use-theme'
|
||||
export interface InputBlockLabelLabel {
|
||||
}
|
||||
|
||||
const InputBlockLabel: React.FC<React.PropsWithChildren<InputBlockLabelLabel>> = React.memo(({
|
||||
const InputBlockLabel: React.FC<React.PropsWithChildren<InputBlockLabelLabel>> = ({
|
||||
children,
|
||||
}) => {
|
||||
const theme = useTheme()
|
||||
@@ -33,6 +33,8 @@ const InputBlockLabel: React.FC<React.PropsWithChildren<InputBlockLabelLabel>> =
|
||||
`}</style>
|
||||
</label>
|
||||
)
|
||||
})
|
||||
}
|
||||
|
||||
export default InputBlockLabel
|
||||
const MemoInputBlockLabel = React.memo(InputBlockLabel)
|
||||
|
||||
export default MemoInputBlockLabel
|
||||
|
||||
Reference in New Issue
Block a user