mirror of
https://github.com/vale981/Vulcan
synced 2025-03-11 13:06:41 -04:00
12 lines
424 B
JavaScript
12 lines
424 B
JavaScript
import { Components, registerComponent } from 'meteor/vulcan:core';
|
|
import React, { Component } from 'react';
|
|
import PropTypes from 'prop-types';
|
|
|
|
const PostsHome = (props, context) => {
|
|
const terms = _.isEmpty(props.location && props.location.query) ? {view: 'top'}: props.location.query;
|
|
return <Components.PostsList terms={terms}/>
|
|
};
|
|
|
|
PostsHome.displayName = "PostsHome";
|
|
|
|
registerComponent('PostsHome', PostsHome);
|