Skip to content

Commit

Permalink
update to new phenomic version
Browse files Browse the repository at this point in the history
  • Loading branch information
tegner committed Jun 20, 2018
1 parent 3a9026b commit cbea061
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/BlogPostComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class BlogPost extends React.Component {
}

const BlogPostContainer = withPhenomicApi(BlogPost, props => ({
page: query({ path: 'posts', id: props.params.splat })
page: query({ path: 'content/posts', id: props.params.splat })
}));

export { BlogPostContainer };
2 changes: 1 addition & 1 deletion src/Home.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const Home = ({ isLoading, posts }) => (
);

const HomeContainer = withPhenomicApi(Home, props => ({
posts: query({ path: 'posts', limit: 5, after: props.params.after })
posts: query({ path: 'content/posts', limit: 5, after: props.params.after })
}));

export { HomeContainer };
Expand Down
2 changes: 1 addition & 1 deletion src/Menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ class Menu extends React.Component {
}

const MenuContainer = withPhenomicApi(Menu, props => ({
posts: query({ path: 'posts', limit: 12 })
posts: query({ path: 'content/posts', limit: 12 })
}));

export { MenuContainer, Menu };
2 changes: 1 addition & 1 deletion src/PostListContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ const PostList = ({ hasError, isLoading, posts }) => {
};

const PostListContainer = withPhenomicApi(PostList, props => ({
posts: query({ path: 'posts', limit: 12, after: props.params.after })
posts: query({ path: 'content/posts', limit: 12, after: props.params.after })
}));

export { PostListContainer };

0 comments on commit cbea061

Please sign in to comment.