mirror of
https://github.com/status-im/safe-react.git
synced 2025-01-13 19:44:12 +00:00
explicitly type classNames
This commit is contained in:
parent
7271d465e1
commit
ecf9e1dd79
@ -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>
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user