Skip to content

Commit

Permalink
updates to latest lib
Browse files Browse the repository at this point in the history
  • Loading branch information
siddharthlatest committed Sep 3, 2017
1 parent 4580255 commit 7b105bb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
14 changes: 7 additions & 7 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,16 @@ var Testing = React.createClass({
<div className="col s12 col-xs-12">
<CategorySearch
componentId="SearchSensor"
appbaseField="name"
dataField="name"
categoryField="brand.raw"
placeholder="Search Cars"
autocomplete={false}
autosuggest={false}
/>
</div>
<div className="col s12 col-xs-12">
<RatingsFilter
componentId="RatingsSensor"
appbaseField="rating"
dataField="rating"
title="RatingsFilter"
data={
[{ start: 4, end: 5, label: "4 stars and up" },
Expand All @@ -57,25 +57,25 @@ var Testing = React.createClass({
<div className="col s6 col-xs-6">
<ResultCard
componentId="SearchResult"
appbaseField="name"
dataField="name"
title="Results"
from={0}
size={20}
onData={this.onData}
sortOptions={[
{
label: "Lowest Price First",
appbaseField: "price",
dataField: "price",
sortBy: "asc"
},
{
label: "Highest Price First",
appbaseField: "price",
dataField: "price",
sortBy: "desc"
},
{
label: "Most rated",
appbaseField: "rating",
dataField: "rating",
sortBy: "desc"
}
]}
Expand Down
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
<title>Reactive Search sample</title>
<!-- CSS -->
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.98.0/css/materialize.min.css" />
<link rel="stylesheet" type="text/css" href="https://cdn.rawgit.com/appbaseio/reactivesearch/v0.4.1/dist/css/style.min.css" />
<link rel="stylesheet" type="text/css" href="https://cdn.rawgit.com/appbaseio/reactivesearch/master/dist/css/style.min.css" />
<!-- JavaScript -->
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/babel-core/5.8.24/browser.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/react/15.4.2/react.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/react/15.4.2/react-dom.min.js"></script>
<script type="text/javascript" src="https://maps.google.com/maps/api/js?key=AIzaSyC-v0oz7Pay_ltypZbKasABXGiY9NlpCIY&libraries=places"></script>
<script type="text/javascript" src="https://cdn.rawgit.com/appbaseio/reactivesearch/v0.4.1/umd/ReactiveSearch.js"></script>
<script type="text/javascript" src="https://cdn.rawgit.com/appbaseio/reactivesearch/master/umd/reactivesearch.js"></script>
</head>
<body>
<div id="root"></div>
Expand Down

0 comments on commit 7b105bb

Please sign in to comment.