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
I'm encountering a particular error right now on Storybook and I'm not really sure how to solve it without redoing our current implementation. Was wondering if anyone's encountered something similar to this and how they've solved it?
For our implementation, we use styled-components to style react-select components. We style the components and add them in like this:
const StyledCustomOptionContainer = styled(ReactSelectComponents.Option)`
[ styles here ]
`;
If I replace StyledCustomOptionContainer with ReactSelectComponents.Option the error does go away, but ideally I'd love to be able to keep the way we're styling these atm.
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
-
I'm encountering a particular error right now on Storybook and I'm not really sure how to solve it without redoing our current implementation. Was wondering if anyone's encountered something similar to this and how they've solved it?
For our implementation, we use
styled-components
to stylereact-select
components. We style the components and add them in like this:CustomOption
looks like this:And the styling looks like this:
If I replace
StyledCustomOptionContainer
withReactSelectComponents.Option
the error does go away, but ideally I'd love to be able to keep the way we're styling these atm.Thanks!
Beta Was this translation helpful? Give feedback.
All reactions