chore: avoid memo override exported component displayName

This commit is contained in:
unix
2020-04-29 15:11:49 +08:00
parent c53abeca7b
commit 869154175f
78 changed files with 325 additions and 239 deletions

View File

@@ -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