Open cody-lettau opened 3 years ago
Pending larger discussion about using an existing React component library as the underpinnings of the Virtuoso Design System.
FYI @kuguarpwnz worked on the original Toggle component in virtru/react-components https://github.com/virtru/react-components/commits/master/lib/components/ToggleButton
We can revisit this when we've decided on the React component library.
Still works well when I import it from react-components
. Should be easily fixed by changing the way it's imported. Please see https://github.com/aaronshaf/react-toggle/issues/97
🐞 bug report
The ToggleButton component throws an error when being rendered:
Description
When using the
ToggleButton
component, an error is thrown when rendering it (see error above). The issue appears to possibly be related to how thereact-toggle
import is defined. See http://aaronshaf.github.io/react-toggle/ for details regarding how it should be imported (specifically, the name of the import should beToggle
instead ofReactToggle
it appears).🔬 Steps to Reproduce
Simply using the
ToggleButton
component leads to this error being thrown when rendered. I tested straight use ofreact-toggle
and it works as expected when I import the library following their guidance in the documentation linked above.🔥 Exception or Error
🌍 Your Environment
Version:
Anything else relevant?