explicitly type classNames
This commit is contained in:
parent
7271d465e1
commit
ecf9e1dd79
|
@ -9,7 +9,12 @@ const Box = styled.p`
|
||||||
border: solid 2px ${border};
|
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>
|
return <Box {...rest}>{children}</Box>
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue