Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export props to allow other libraries to reference it #181

Merged
merged 2 commits into from Oct 13, 2020

Conversation

labithiotis
Copy link
Contributor

Pretty simple PR to export props to allow them to be reference by other libraries.

@codesandbox-ci
Copy link

codesandbox-ci bot commented Oct 12, 2020

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.

Latest deployment of this branch, based on commit d4b11ed:

Sandbox Source
react-easy-crop Configuration

src/index.tsx Outdated
@@ -12,7 +12,7 @@ import {
} from './helpers'
import cssStyles from './styles.css'

type Props = {
export type EasyCropperProps = {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As the component is named Cropper, I would name this CropperProps.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ValentinH Can do, but thought due to NPM name it would be best to relate to that i.e react-easy-crop therefor EasyCropper

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cropper is the name used in the docs so I'd use this :)

@ValentinH ValentinH merged commit 4e49d41 into ValentinH:master Oct 13, 2020
@ValentinH
Copy link
Owner

Thanks for this PR. It has been published under v3.2.1 🎉

@ValentinH
Copy link
Owner

@all-contributors please add @labithiotis for code

@allcontributors
Copy link
Contributor

@ValentinH

I've put up a pull request to add @labithiotis! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants