Skip to content

Commit

Permalink
Update ReactiveList stories
Browse files Browse the repository at this point in the history
  • Loading branch information
divyanshu013 committed Sep 27, 2017
1 parent 74cd983 commit 6932938
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
5 changes: 0 additions & 5 deletions app/stories/ReactiveList.stories.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import React, { Component } from "react";
import { ReactiveBase, MultiList, ReactiveList } from "../app";
import ResponsiveStory from "./ReactiveElement/ResponsiveStory";
import { Img } from "./Img";

require("./list.css");
Expand All @@ -12,10 +11,6 @@ export default class ReactiveListDefault extends Component {
this.DEFAULT_IMAGE = "http://www.avidog.com/wp-content/uploads/2015/01/BellaHead082712_11-50x65.jpg";
}

componentDidMount() {
ResponsiveStory();
}

onData(markerData) {
const marker = markerData._source;
return (
Expand Down
6 changes: 6 additions & 0 deletions app/stories/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1036,6 +1036,12 @@ storiesOf("ReactiveList", module)
title="Meetups"
/>
)))
.add("With infinite loading", withReadme(removeFirstLine(ReactiveListReadme, 3), () => (
<ReactiveListDefault
pagination={false}
scrollOnTarget={window}
/>
)))
.add("With custom sort order", withReadme(removeFirstLine(ReactiveListReadme, 3), () => (
<ReactiveListDefault onAllData={null} stream={false} sortBy={select("sortBy", { asc: "asc", desc: "desc", default: "default" }, "asc")} />
)))
Expand Down

0 comments on commit 6932938

Please sign in to comment.