Added poetry picture, fixed spacing on UserPage
This commit is contained in:
@ -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>
|
||||
)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user