Add blogpost page and cell
This commit is contained in:
12
web/src/pages/BlogPostPage/BlogPostPage.js
Normal file
12
web/src/pages/BlogPostPage/BlogPostPage.js
Normal 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
|
||||
7
web/src/pages/BlogPostPage/BlogPostPage.stories.js
Normal file
7
web/src/pages/BlogPostPage/BlogPostPage.stories.js
Normal file
@@ -0,0 +1,7 @@
|
||||
import BlogPostPage from './BlogPostPage'
|
||||
|
||||
export const generated = () => {
|
||||
return <BlogPostPage />
|
||||
}
|
||||
|
||||
export default { title: 'Pages/BlogPostPage' }
|
||||
11
web/src/pages/BlogPostPage/BlogPostPage.test.js
Normal file
11
web/src/pages/BlogPostPage/BlogPostPage.test.js
Normal file
@@ -0,0 +1,11 @@
|
||||
import { render } from '@redwoodjs/testing'
|
||||
|
||||
import BlogPostPage from './BlogPostPage'
|
||||
|
||||
describe('BlogPostPage', () => {
|
||||
it('renders successfully', () => {
|
||||
expect(() => {
|
||||
render(<BlogPostPage />)
|
||||
}).not.toThrow()
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user