forked from polka_billy/porridger
Added poetry display on userPage
This commit is contained in:
@ -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>
|
||||
)
|
||||
}
|
||||
|
Reference in New Issue
Block a user