pendulum-chain / portal

The Pendulum/Amplitude portal UI
GNU General Public License v3.0
1 stars 1 forks source link

fix lottie animation stops playing onclick #492

Closed Sharqiewicz closed 4 weeks ago

Sharqiewicz commented 4 weeks ago

What:

When you hover your cursor over “Stellar Bridge” in the navigation, the Lottie animation starts playing, however, if you click on it while the animation is playing, the animation stops and cannot continue.

How:

✅ Add isClickToPauseDisabled={true} to the Lottie component ✅ Add createLottieOptions function to make the code less repetitive

⚠️ Note In the console this Lottie error appears: Failed prop type: Invalid prop 'style' of type 'object' supplied to 'Lottie2', expected 'string' The error appears since the day we implemented it, unfortunately the developer of the react-lottie library implemented the types incorrectly and the styles of the <Lottie> component cannot be implemented without this error

netlify[bot] commented 4 weeks ago

Deploy Preview for rococo-souffle-a625f5 ready!

Name Link
Latest commit fd452a555b0fe9bedd26fe145f4e0342c6b2dc53
Latest deploy log https://app.netlify.com/sites/rococo-souffle-a625f5/deploys/665e2e1f66b9210008d6bd5d
Deploy Preview https://deploy-preview-492--rococo-souffle-a625f5.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.