Added poetry picture, fixed spacing on UserPage

This commit is contained in:
2023-08-09 14:25:50 +03:00
parent 6478b45301
commit fa98b392a8
5 changed files with 26 additions and 27 deletions

View File

@ -7,7 +7,7 @@ function Poetry() {
const poetry = usePoetry()
return (
<div className={styles.container}>
<section>
<h4 className='fw-bold'>Поэзия</h4> {
gotResponse(poetry) ? (
gotError(poetry) ? (
@ -26,6 +26,7 @@ function Poetry() {
}}
/>
<p><em>{poetry.data.author}</em></p>
<img src={`/poem_pic/${poetry.data.id}`} alt='Иллюстрация' />
</>
)
) : (
@ -33,7 +34,7 @@ function Poetry() {
)
}
</div>
</section>
)
}