You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
I use the Styled-Components example to style the dropzone: https://react-dropzone.js.org/#using-styled-components
Now, I'am getting following errors:
I know, we can use the Transient props of Syteld-Components to fix this error:
https://styled-components.com/docs/api#transient-props
But I don't know how to use the transient props in the getRootProps() method of dropzone:
<Dropzone {...getRootProps({ isFocused, isDragAccept, isDragReject })}>
Can someone help me?
Beta Was this translation helpful? Give feedback.
All reactions