Add blogpost page and cell

This commit is contained in:
Kurt Hutten
2020-10-10 12:18:23 +11:00
parent 029d6f4efc
commit 1a8bea1b85
9 changed files with 108 additions and 1 deletions

View File

@@ -0,0 +1,12 @@
import BlogLayout from 'src/layouts/BlogLayout'
import BlogPostCell from 'src/components/BlogPostCell'
const BlogPostPage = ({id}) => {
return (
<BlogLayout>
<BlogPostCell id={id}/>
</BlogLayout>
)
}
export default BlogPostPage

View File

@@ -0,0 +1,7 @@
import BlogPostPage from './BlogPostPage'
export const generated = () => {
return <BlogPostPage />
}
export default { title: 'Pages/BlogPostPage' }

View File

@@ -0,0 +1,11 @@
import { render } from '@redwoodjs/testing'
import BlogPostPage from './BlogPostPage'
describe('BlogPostPage', () => {
it('renders successfully', () => {
expect(() => {
render(<BlogPostPage />)
}).not.toThrow()
})
})