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

feat(components/molecule/photoUploader): add prop onSortPhotoStart to… #2768

Merged
merged 1 commit into from
Oct 17, 2024

Conversation

davidmartin84
Copy link
Collaborator

… photouploader

Category/Component

TASK:

Description, Motivation and Context

Types of changes

  • 🪲 Bug fix (non-breaking change which fixes an issue)
  • ✨ New feature (non-breaking change which adds functionality)
  • 💥 Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • 🧾 Documentation
  • 📷 Demo
  • 🧪 Test
  • 🧠 Refactor
  • 💄 Styles
  • 🛠️ Tool

Screenshots - Animations

Copy link

STATEMENTS BRANCHES FUNCTIONS LINES
≍ 0.06↓ ≍ 0.01↑ ≍ 0.2↓ ≍ 0.2↓
% 75.91 64.04 65.76 77.69
ABS 3360 / 4426 2056 / 3210 657 / 999 3181 / 4094

Comment on lines +525 to +526
/** Func to be executed when photo is being sorted */
onSortPhotoStart: PropTypes.func,
Copy link
Contributor

@jordevo jordevo Oct 17, 2024

Choose a reason for hiding this comment

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

🍆 not sure then what does Start mean there...? is it because the event fires when the user "starts" sorting photos? should we aim for some more simple naming ie onSortPhotos or something like that?

Copy link
Contributor

Choose a reason for hiding this comment

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

oh I see it's coupled to the name the ReactSortable component prop has... onStart

Copy link
Contributor

Choose a reason for hiding this comment

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

still, I would keep it simple... onSortPhotos is my suggestion 😉

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Thanks!!!

@davidmartin84 davidmartin84 merged commit 357f143 into master Oct 17, 2024
7 checks passed
@davidmartin84 davidmartin84 deleted the feature/add-on-start-drag-photo-photouploader branch October 17, 2024 06:53
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.

2 participants