issue-148 Clean up files with "2" in them

resolves #148
This commit is contained in:
Kurt Hutten
2020-12-12 15:13:31 +11:00
parent ba0c80d91a
commit 278add82a6
31 changed files with 235 additions and 261 deletions

View File

@@ -0,0 +1,23 @@
import { useAuth } from '@redwoodjs/auth'
import MainLayout from 'src/layouts/MainLayout'
import PartCell from 'src/components/PartCell'
import Seo from 'src/components/Seo/Seo'
const EditPartPage = ({ userName, partTitle }) => {
const { currentUser } = useAuth()
return (
<MainLayout>
<Seo title={partTitle} description="Edit part page" lang="en-US" />
<PartCell
userName={userName}
partTitle={partTitle}
currentUserId={currentUser?.sub}
isEditable
/>
</MainLayout>
)
}
export default EditPartPage

View File

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

View File

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