Added poetry display on userPage

This commit is contained in:
2023-07-31 15:03:56 +03:00
parent e7327945e3
commit 6724a97352
7 changed files with 208 additions and 1 deletions

View File

@ -2,7 +2,7 @@ import { Container } from 'react-bootstrap'
import { useUser } from '../hooks/api'
import { userCategories } from '../assets/userCategories'
import { BackHeader, CategoryPreview, Points, SignOut } from '../components'
import { BackHeader, CategoryPreview, Poetry, Points, SignOut } from '../components'
import { gotError, gotResponse } from '../hooks/useFetch'
function UserPage() {
@ -31,9 +31,12 @@ function UserPage() {
'Загрузка...'
)
} />
{userCategories.map(cat => (
<CategoryPreview key={cat} category={cat} />
))}
<Poetry />
</Container>
)
}