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,22 @@
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 PartPage = ({ userName, partTitle }) => {
const { currentUser } = useAuth()
return (
<MainLayout>
<Seo title={partTitle} description={partTitle} lang="en-US" />
<PartCell
userName={userName}
partTitle={partTitle}
currentUserId={currentUser?.sub}
/>
</MainLayout>
)
}
export default PartPage

View File

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

View File

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