Advertisement
Guest User

Untitled

a guest
Aug 21st, 2019
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. <Icon onClick={() => {}} />
  2.  
  3. Property 'onClick' does not exist on type 'IntrinsicAttributes & Pick<Pick<Props, "className" | "name"> & Partial<Pick<Props, never>>, "className" | "name"> & { theme?: any; } & { as?: "symbol" | "object" | ... 174 more ... | undefined; }'.ts(2322)
  4.  
  5. interface Props {
  6. name: string
  7. className?: string
  8. }
  9.  
  10. const Icon = styled(({name, className, ...props}: Props) => <i className={`material-icons ${className}`} {...props}>{name}</i>)``
  11.  
  12. [x: string]: any
  13.  
  14. <Button onClick={() => {}} />
  15.  
  16. const Button = styled.button``
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement