Wipe slate clean
This commit is contained in:
@@ -1,24 +0,0 @@
|
||||
import { Link, routes } from '@redwoodjs/router'
|
||||
|
||||
const BlogLayout = ({ children }) => {
|
||||
return (
|
||||
<>
|
||||
<header>
|
||||
<h1>Redwood Blog</h1>
|
||||
<nav>
|
||||
<ul>
|
||||
<li>
|
||||
<Link to={routes.about()}>About</Link>
|
||||
</li>
|
||||
<li>
|
||||
<Link to={routes.home()}>Home</Link>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
</header>
|
||||
<main>{children}</main>
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
||||
export default BlogLayout
|
||||
@@ -1,7 +0,0 @@
|
||||
import BlogLayout from './BlogLayout'
|
||||
|
||||
export const generated = () => {
|
||||
return <BlogLayout />
|
||||
}
|
||||
|
||||
export default { title: 'Layouts/BlogLayout' }
|
||||
@@ -1,11 +0,0 @@
|
||||
import { render } from '@redwoodjs/testing'
|
||||
|
||||
import BlogLayout from './BlogLayout'
|
||||
|
||||
describe('BlogLayout', () => {
|
||||
it('renders successfully', () => {
|
||||
expect(() => {
|
||||
render(<BlogLayout />)
|
||||
}).not.toThrow()
|
||||
})
|
||||
})
|
||||
@@ -1,11 +0,0 @@
|
||||
|
||||
|
||||
const PartsLayout = (props) => {
|
||||
return (
|
||||
<div className="mt-8">
|
||||
<main>{props.children}</main>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
export default PartsLayout
|
||||
@@ -1,23 +0,0 @@
|
||||
import { Link, routes } from '@redwoodjs/router'
|
||||
import { Flash } from '@redwoodjs/web'
|
||||
|
||||
const PostsLayout = (props) => {
|
||||
return (
|
||||
<div className="rw-scaffold">
|
||||
<Flash timeout={1000} />
|
||||
<header className="rw-header">
|
||||
<h1 className="rw-heading rw-heading-primary">
|
||||
<Link to={routes.posts()} className="rw-link">
|
||||
Posts
|
||||
</Link>
|
||||
</h1>
|
||||
<Link to={routes.newPost()} className="rw-button rw-button-green">
|
||||
<div className="rw-button-icon">+</div> New Post
|
||||
</Link>
|
||||
</header>
|
||||
<main>{props.children}</main>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
export default PostsLayout
|
||||
Reference in New Issue
Block a user