Skip to content

Commit 6e870bd

Browse files
author
Emil Hartz
committed
readme, doc, and exmample updates
1 parent 516eb3f commit 6e870bd

File tree

5 files changed

+12
-10
lines changed

5 files changed

+12
-10
lines changed

.github/ISSUE_TEMPLATE/---support-usage-question.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,8 @@ If you have a question that doesn't concern bugs or requests, all i am asking yo
1111

1212
When you haven't found anything, please isolate your issue in a [codesandbox](https://codesandbox.io/), that makes it so much easier on our side to inspect and understand the issue.
1313

14-
Fork the example codesandboxes:
15-
- hook: https://codesandbox.io/s/lrk6955l79
16-
- component: https://codesandbox.io/s/4q7n429vl4
14+
Fork the example codesandbox:
15+
- https://codesandbox.io/s/react-swipeable-image-carousel-hben8
1716

1817

1918
Thanks for understanding!

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,8 @@ assignees: ''
1111
A clear and concise description of what the bug is.
1212

1313
**Steps or Sandbox to reproduce**
14-
Fork the example codesanboxes
15-
- hook: https://codesandbox.io/s/lrk6955l79
16-
- component: https://codesandbox.io/s/4q7n429vl4
14+
Fork the example codesandbox:
15+
- https://codesandbox.io/s/react-swipeable-image-carousel-hben8
1716

1817
**Expected behavior**
1918
A clear and concise description of what you expected to happen.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ React swipe event handler hook
44

55
[![build status](https://img.shields.io/travis/FormidableLabs/react-swipeable/master.svg?style=flat-square)](https://travis-ci.org/FormidableLabs/react-swipeable) [![Coverage Status](https://img.shields.io/coveralls/FormidableLabs/react-swipeable/master.svg?style=flat-square)](https://coveralls.io/github/FormidableLabs/react-swipeable?branch=master) [![npm version](https://img.shields.io/npm/v/react-swipeable.svg?style=flat-square)](https://www.npmjs.com/package/react-swipeable) [![npm downloads](https://img.shields.io/npm/dm/react-swipeable.svg?style=flat-square)](https://www.npmjs.com/package/react-swipeable) [![gzip size](https://flat.badgen.net/bundlephobia/minzip/react-swipeable)](https://bundlephobia.com/result?p=react-swipeable)
66

7-
[![Edit react-swipeable image carousel with hook](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/lrk6955l79?module=%2Fsrc%2FCarousel.js)
7+
[![Edit react-swipeable image carousel](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/react-swipeable-image-carousel-hben8?file=/src/Carousel.js)
88

99
[Github Pages Demo](http://formidablelabs.github.io/react-swipeable/)
1010

examples/app/App.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,17 @@ export default function App({version}: {version: any}) {
1818
<dl>
1919
<dt>Examples:</dt>
2020
<dd><a href="#FeatureTestConsole">Feature testing with console log output ⇨</a></dd>
21-
<dd><a href="#SimpleCarousel">Simple Image Carousel using react-swipeable ⇨</a></dd>
21+
<dd><a href="#SimpleCarousel">Image Carousel using react-swipeable ⇨</a></dd>
2222
</dl>
2323
<hr />
2424
<FeatureTestConsole />
2525
<hr />
2626
<div className="row" id="SimpleCarousel">
27-
<iframe src="https://codesandbox.io/embed/lrk6955l79" style={{width:'100%', height:'500px', border:'0', borderRadius:'4px', overflow:'hidden'}} sandbox="allow-modals allow-forms allow-popups allow-scripts allow-same-origin" />
27+
<h2>Codesandbox Example:</h2>
28+
<a href="https://codesandbox.io/s/react-swipeable-image-carousel-hben8?autoresize=1&fontsize=14&hidenavigation=1&module=%2Fsrc%2FCarousel.js&theme=light&view=preview" style={{ margin: 'auto', paddingBottom: '1rem' }}>
29+
<img alt="Edit react-swipeable image carousel" src="https://codesandbox.io/static/img/play-codesandbox.svg" />
30+
</a>
31+
<iframe src="https://codesandbox.io/embed/react-swipeable-image-carousel-hben8?autoresize=1&fontsize=14&hidenavigation=1&module=%2Fsrc%2FCarousel.js&theme=light&view=preview" style={{width: '100%', height: '500px', border: '0', borderRadius: '4px', overflow: 'hidden'}} title="react-swipeable image carousel" allow="accelerometer; ambient-light-sensor; camera; encrypted-media; geolocation; gyroscope; hid; microphone; midi; payment; usb; vr; xr-spatial-tracking" sandbox="allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts" />
2832
</div>
2933
<hr />
3034
<p style={{"marginBottom": "2rem"}}>

examples/css/foundation.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)