Skip to content

Commit

Permalink
Merge branch 'master' into fix-2166
Browse files Browse the repository at this point in the history
  • Loading branch information
akiran committed May 15, 2023
2 parents 7035d84 + b9302d6 commit 34b4ca0
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
### react-slick

[![Backers on Open Collective](https://opencollective.com/react-slick/backers/badge.svg)](#backers) [![Sponsors on Open Collective](https://opencollective.com/react-slick/sponsors/badge.svg)](#sponsors) [![Join the chat at https://gitter.im/akiran/react-slick](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/akiran/react-slick?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[![Backers on Open Collective](https://opencollective.com/react-slick/backers/badge.svg)](#backers) [![Sponsors on Open Collective](https://opencollective.com/react-slick/sponsors/badge.svg)](#sponsors)

##### Carousel component built with React. It is a react port of [slick carousel](http://kenwheeler.github.io/slick/)

Expand Down Expand Up @@ -107,6 +107,11 @@ npm start
open http://localhost:8080
```

## Community

Join our [discord channel](https://discord.gg/z7stRE4Cyb) to discuss react-slick bugs and ask for help


## Contributing

Please see the [contributing guidelines](./CONTRIBUTING.md)
12 changes: 7 additions & 5 deletions examples/AdaptiveHeight.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
import React, { Component } from "react";
import React from "react";
import Slider from "../src/slider";

export default class AdaptiveHeight extends Component {
render() {
var settings = {
const AdaptiveHeight = () => {

const settings = {
className: "",
dots: true,
infinite: true,
slidesToShow: 1,
slidesToScroll: 1,
adaptiveHeight: true
};

return (
<div>
<h2>Adaptive height</h2>
Expand Down Expand Up @@ -40,4 +41,5 @@ export default class AdaptiveHeight extends Component {
</div>
);
}
}

export default AdaptiveHeight;

0 comments on commit 34b4ca0

Please sign in to comment.