Skip to content

Conversation

@paghar
Copy link
Contributor

@paghar paghar commented Jun 8, 2023

Description

Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.

Fixes # (issue)

Type of change

Please delete options that are not relevant.

  • 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)
  • This change contains documentation update

Breaking changes

Please document the breaking changes if suitable.

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • Test A
  • Test B

Test Configuration:

  • Firmware version:
  • Hardware:
  • Toolchain:
  • SDK:

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules
  • I have checked my code and corrected any misspellings
@vercel
Copy link

vercel bot commented Jun 8, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
flowbite-react ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 10, 2023 2:13pm
@tulup-conner tulup-conner marked this pull request as draft June 8, 2023 18:58
@tohiidd tohiidd force-pushed the feat/carousel-onslide-callback branch from 8b616de to 21edde2 Compare June 9, 2023 06:14
@codecov
Copy link

codecov bot commented Jun 10, 2023

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (0578cd5) 99.54% compared to head (869e576) 99.54%.

Additional details and impacted files
@@ Coverage Diff @@ ## main #802 +/- ## ======================================= Coverage 99.54% 99.54% ======================================= Files 129 129 Lines 6537 6543 +6 Branches 391 393 +2 ======================================= + Hits 6507 6513 +6  Misses 30 30 
Impacted Files Coverage Δ
src/components/Carousel/Carousel.tsx 99.02% <100.00%> (+0.02%) ⬆️

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@paghar paghar marked this pull request as ready for review June 10, 2023 20:29
const handleDragging = (dragging: boolean) => () => setIsDragging(dragging);

useEffect(() => {
!!onSlide && onSlide(activeItem);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why do you add two !!? Isn't just onSlide enough?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@rluders !! is not necessary and i just added it for readability sake, i can remove it if you prefer.

Copy link
Collaborator

Choose a reason for hiding this comment

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

@paghar yes, please make it simplier, just onSlide && onSlide(activeItem) is good.

@rluders rluders changed the title feat:add onSlide callback feat: add onSlide callback Jun 15, 2023
@rluders rluders changed the title feat: add onSlide callback feat(carousel): add onSlide callback Jun 15, 2023
@rluders rluders marked this pull request as draft June 29, 2023 12:49
@rluders
Copy link
Collaborator

rluders commented Jun 29, 2023

Replaced by #833

@rluders rluders closed this Jun 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants