Skip to content

Commit

Permalink
Renames PostsLayout -> ScaffoldLayout
Browse files Browse the repository at this point in the history
  • Loading branch information
cannikin committed May 29, 2024
1 parent 4f17151 commit 2ec2217
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions web/src/Routes.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import { Router, Route, Private, Set } from '@redwoodjs/router'

import BlogLayout from 'src/layouts/BlogLayout'
import PostsLayout from 'src/layouts/PostsLayout'
import ScaffoldLayout from 'src/layouts/ScaffoldLayout'

import { useAuth } from './auth'

Expand All @@ -22,7 +22,7 @@ const Routes = () => {
<Route path="/forgot-password" page={ForgotPasswordPage} name="forgotPassword" />
<Route path="/reset-password" page={ResetPasswordPage} name="resetPassword" />
<Private unauthenticated="home">
<Set wrap={PostsLayout}>
<Set wrap={ScaffoldLayout}>
<Route path="/admin/posts/new" page={PostNewPostPage} name="newPost" />
<Route path="/admin/posts/{id:Int}/edit" page={PostEditPostPage} name="editPost" />
<Route path="/admin/posts/{id:Int}" page={PostPostPage} name="post" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Link, routes } from '@redwoodjs/router'
import { Toaster } from '@redwoodjs/web/toast'

const PostsLayout = (props) => {
const ScaffoldLayout = (props) => {
return (
<div className="rw-scaffold">
<Toaster />
Expand All @@ -20,4 +20,4 @@ const PostsLayout = (props) => {
)
}

export default PostsLayout
export default ScaffoldLayout

0 comments on commit 2ec2217

Please sign in to comment.