explicitly type classNames

This commit is contained in:
nicosampler 2020-06-26 12:19:29 -03:00
parent 7271d465e1
commit ecf9e1dd79
1 changed files with 6 additions and 1 deletions

View File

@ -9,7 +9,12 @@ const Box = styled.p`
border: solid 2px ${border};
`
const TextBox = ({ children, ...rest }: { children: React.ReactNode }): React.ReactElement => {
type Props = {
children: React.ReactNode
classNames?: string
}
const TextBox = ({ children, ...rest }: Props): React.ReactElement => {
return <Box {...rest}>{children}</Box>
}