ValentinH / react-easy-crop

A React component to crop images/videos with easy interactions
https://valentinh.github.io/react-easy-crop/
MIT License
2.34k stars 167 forks source link

fix(typescript): change how we import React #523

Closed ValentinH closed 8 months ago

ValentinH commented 8 months ago

This should fix #522.

At first, I didn't understand what was going on and then I compared with a random lib like react-range and that was the only difference in the TS definitions. After changing it, it fixed the TS error 🤔

📦 Published PR as canary version: 5.0.6--canary.523.29dc8c6.0
:sparkles: Test out this PR locally via: ```bash npm install react-easy-crop@5.0.6--canary.523.29dc8c6.0 # or yarn add react-easy-crop@5.0.6--canary.523.29dc8c6.0 ```
codesandbox-ci[bot] commented 8 months ago

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

socket-security[bot] commented 8 months ago

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@auto-it/all-contributors@11.0.5 environment, filesystem Transitive: eval, network, shell, unsafe +72 12.2 MB alisowski
npm/@auto-it/first-time-contributor@11.0.5 Transitive: environment, eval, filesystem, network, shell, unsafe +57 11.6 MB alisowski
npm/@auto-it/released@11.0.5 Transitive: environment, eval, filesystem, network, shell, unsafe +57 11.6 MB alisowski
npm/decamelize@1.2.0 None 0 2.94 kB sindresorhus

🚮 Removed packages: npm/@auto-it/all-contributors@10.42.0, npm/@auto-it/first-time-contributor@10.42.0, npm/@types/babel__traverse@7.18.3, npm/fsevents@2.3.2, npm/yargs-parser@21.1.1

View full report↗︎

github-actions[bot] commented 8 months ago

:rocket: PR was released in v5.0.6 :rocket: