2017-03-23 16:27:59 +09:00
|
|
|
import { Components, registerComponent } from 'meteor/vulcan:core';
|
2016-11-11 18:19:18 +09:00
|
|
|
import React, { PropTypes, Component } from 'react';
|
2016-06-10 19:19:32 +09:00
|
|
|
|
2016-11-11 18:19:18 +09:00
|
|
|
const PostsHome = (props, context) => {
|
2016-12-14 22:35:02 +09:00
|
|
|
const terms = _.isEmpty(props.location && props.location.query) ? {view: 'top'}: props.location.query;
|
2016-12-06 18:06:29 +01:00
|
|
|
return <Components.PostsList terms={terms}/>
|
2016-11-11 18:19:18 +09:00
|
|
|
};
|
2016-10-25 16:24:03 +09:00
|
|
|
|
2016-11-11 18:19:18 +09:00
|
|
|
PostsHome.displayName = "PostsHome";
|
2016-10-25 16:24:03 +09:00
|
|
|
|
2016-12-08 23:48:16 +01:00
|
|
|
registerComponent('PostsHome', PostsHome);
|