bunch of stuff
This commit is contained in:
19
web/src/pages/AboutPage/AboutPage.js
Normal file
19
web/src/pages/AboutPage/AboutPage.js
Normal file
@@ -0,0 +1,19 @@
|
||||
import { Link, routes } from '@redwoodjs/router'
|
||||
import BlogLayout from 'src/layouts/BlogLayout'
|
||||
|
||||
const AboutPage = () => {
|
||||
return (
|
||||
<BlogLayout>
|
||||
<h1>AboutPage</h1>
|
||||
<p>
|
||||
Find me in <tt>./web/src/pages/AboutPage/AboutPage.js</tt>
|
||||
</p>
|
||||
<p>
|
||||
My default route is named <tt>about</tt>, link to me with `
|
||||
<Link to={routes.about()}>About</Link>`
|
||||
</p>
|
||||
</BlogLayout>
|
||||
)
|
||||
}
|
||||
|
||||
export default AboutPage
|
||||
7
web/src/pages/AboutPage/AboutPage.stories.js
Normal file
7
web/src/pages/AboutPage/AboutPage.stories.js
Normal file
@@ -0,0 +1,7 @@
|
||||
import AboutPage from './AboutPage'
|
||||
|
||||
export const generated = () => {
|
||||
return <AboutPage />
|
||||
}
|
||||
|
||||
export default { title: 'Pages/AboutPage' }
|
||||
11
web/src/pages/AboutPage/AboutPage.test.js
Normal file
11
web/src/pages/AboutPage/AboutPage.test.js
Normal file
@@ -0,0 +1,11 @@
|
||||
import { render } from '@redwoodjs/testing'
|
||||
|
||||
import AboutPage from './AboutPage'
|
||||
|
||||
describe('AboutPage', () => {
|
||||
it('renders successfully', () => {
|
||||
expect(() => {
|
||||
render(<AboutPage />)
|
||||
}).not.toThrow()
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user