The links to the scripts and css are hardcoded into the component.
And they are not configurable between sandbox and prod, but they should be.
If we want to test the widget on sandbox, but we load the script from prod domain, we get unauthorized response from the api even if we use sandbox token.
So I had to modify your component for my use case and do a little switch for the script source depending on the sandbox parameter.
The links to the scripts and css are hardcoded into the component.
And they are not configurable between sandbox and prod, but they should be.
If we want to test the widget on sandbox, but we load the script from prod domain, we get unauthorized response from the api even if we use sandbox token.
So I had to modify your component for my use case and do a little switch for the script source depending on the sandbox parameter.