-
-
Notifications
You must be signed in to change notification settings - Fork 101
React does not recognize the __scTheme
#99
Comments
Hello @jacekschae, I think you are doing something wrong, this property is in the theme and should not be part of a component. I think you are spreading the theme somewhere. |
Hello @neoziro I'm not sure if it's me 🤔 I used create react app and added smooth-ui (repo: https://github.com/jacekschae/smooth-ui-modal) after opening the modal I have following error in the console:
I think this has to do with v8, I didn't have this error before. Hope that helps |
This is independent of adding |
My bad, there was an error. I fixed it, I will publish a new release soon. Thanks for reporting! |
Glad to help |
Hey @neoziro, I'm also seeing this issue in the following scenario: import { Link } from 'react-router-dom';
import { Button } from '@smooth-ui/core-sc';
const StyledLink = styled(Link)`
min-width: auto;
&:hover {
text-decoration: none;
}
`; <Button as={StyledLink} to="/profile">
Profile
</Button> The issue seems to be when using the <StyledLink to="/">
Test
</StyledLink> |
Hi @ividic |
Thanks @jacekschae, I missed that change - fixed now. |
Yeah, I am actually working on removing "uiAs" and also removing this weird theme prop. |
Does this mean it will be back to |
Yes, by the end of the week I think. |
💬 Questions and Help
I'm using smooth ui modal and get following error in the console whenever i open a modal in my app
What am I doing wrong 🤔?
The text was updated successfully, but these errors were encountered: