Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Описание питомцев #241

Merged
merged 1 commit into from
May 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions src/modules/PetModule/PetModule.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ const PetModule = () => {
const { id: shelterId, petId } = useParams();
const { shelter, isOwner } = useOutletContext();
// eslint-disable-next-line
const [{ name, age, breed, gallery, sex, sheltering_time }, setPet] = useState({}); // информация о питомце

const [{ name, age, breed, gallery, sex, sheltering_time, about }, setPet] = useState({}); // информация о питомце
console.log(about);
const [isTakedHome, setIsTakedHome] = useState(false);
const [popupIsVisible, setPopupIsVisible] = useState(false);
const [tooltipIsVisible, setTooltipIsVisible] = useState(false);
Expand Down Expand Up @@ -138,10 +138,7 @@ const PetModule = () => {
</div>
<div className='pet-module__description-container'>
<h3 className='standard-font standard-font_type_h3'>Описание</h3>
<p className='pet-module__description standard-font standard-font_type_body'>
Мы подобрали ее на улице, когда она была совсем крохотной. Это очень ласковая игривая кошка. Ее любимая еда это рыба. Любит гулять. Предыдущие
хозяева были добры с ней.
</p>
<p className='pet-module__description standard-font standard-font_type_body'>{about}</p>
</div>
<div className='pet-module__button-wrapper'>
{isModalOpen && (
Expand Down
Loading