Vulcan/packages/nova-base-components/lib/posts/PostsHome.jsx

12 lines
397 B
React
Raw Normal View History

import { Components, registerComponent } from 'meteor/nova:core';
import React, { PropTypes, Component } from 'react';
2016-06-10 19:19:32 +09:00
const PostsHome = (props, context) => {
const terms = _.isEmpty(props.location && props.location.query) ? {view: 'top'}: props.location.query;
return <Components.PostsList terms={terms}/>
};
2016-10-25 16:24:03 +09:00
PostsHome.displayName = "PostsHome";
2016-10-25 16:24:03 +09:00
registerComponent('PostsHome', PostsHome);