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: add hide-arrows property #74

Merged
merged 3 commits into from
Apr 19, 2022
Merged

feat: add hide-arrows property #74

merged 3 commits into from
Apr 19, 2022

Conversation

hasantezcan
Copy link
Member

Description

Add hideArrows property to hide the left and right arrows.


What is the purpose of this pull request?

  • Bug fix
  • New Feature
  • Documentation update
  • Other

Before submitting the PR, please make sure you do the following

  • Check that there isn't already a PR that solves the problem the same way to avoid creating a duplicate.
  • Provide a description in this PR that addresses what the PR is solving, or reference the issue that it solves (e.g. fixes #123).
  • Ideally, include relevant tests that fail without this PR but pass with it.
    diff --git a/.github/workflows/PULL_REQUEST_TEMPLATE.md b/.github/workflows/PULL_REQUEST_TEMPLATE.md

@hasantezcan hasantezcan added the enhancement New feature or request label Apr 19, 2022
@hasantezcan hasantezcan requested review from minel and hasangenc0 April 19, 2022 11:05
@hasantezcan hasantezcan self-assigned this Apr 19, 2022
minel
minel previously approved these changes Apr 19, 2022
@hasantezcan hasantezcan changed the title feat: Add hideArrows property feat: add hide-arrows property Apr 19, 2022
@codecov
Copy link

codecov bot commented Apr 19, 2022

Codecov Report

Merging #74 (e87fb8d) into master (fab8806) will increase coverage by 0.09%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master      #74      +/-   ##
==========================================
+ Coverage   87.04%   87.13%   +0.09%     
==========================================
  Files          10       10              
  Lines         409      412       +3     
  Branches      106      108       +2     
==========================================
+ Hits          356      359       +3     
  Misses         53       53              
Flag Coverage Δ
unittests 87.13% <100.00%> (+0.09%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/components/carousel/defaultProps.ts 100.00% <ø> (ø)
src/hooks/index.ts 95.00% <ø> (ø)
src/components/carousel/index.tsx 95.90% <100.00%> (ø)
src/helpers/index.ts 91.47% <100.00%> (+0.20%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update fab8806...e87fb8d. Read the comment docs.

minel
minel previously approved these changes Apr 19, 2022
minel
minel previously approved these changes Apr 19, 2022
@@ -20,4 +20,5 @@ export const defaultProps: Required<CarouselProps> = {
autoSwipe: null,
navigation: null,
triggerClickOn: Number.MIN_SAFE_INTEGER,
hideArrows: false,
Copy link
Contributor

Choose a reason for hiding this comment

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

can you add it to docs?

@hasangenc0 hasangenc0 merged commit 3269f6b into master Apr 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants