From 6162d04249186651f42fec18f2601ca9e33d4608 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=91=D0=B5=D0=BB=D0=BE=D1=83=D1=81=D0=BE=D0=B2=20=D0=9A?= =?UTF-8?q?=D0=B0=D1=80=D0=BB?= <141405429+karlbelousov@users.noreply.github.com> Date: Tue, 7 May 2024 17:49:58 +0600 Subject: [PATCH] =?UTF-8?q?=D0=B8=D0=B7=D0=BC=D0=B5=D0=BD=D0=B8=D0=BB=20?= =?UTF-8?q?=D0=BE=D1=82=D0=BE=D0=B1=D1=80=D0=B0=D0=B6=D0=B5=D0=BD=D0=B8?= =?UTF-8?q?=D0=B5=20=D0=B7=D0=B0=D0=B3=D0=BE=D0=BB=D0=BE=D0=B2=D0=BA=D0=B0?= =?UTF-8?q?=20=D0=BD=D0=B0=20=D1=81=D1=82=D1=80=D0=B0=D0=BD=D0=B8=D1=86?= =?UTF-8?q?=D0=B0=D1=85=20=D0=B6=D0=B8=D0=B2=D0=BE=D1=82=D0=BD=D1=8B=D1=85?= =?UTF-8?q?=20=D0=BF=D0=BE=20=D1=82=D0=B8=D0=BF=D1=83=20=D0=B6=D0=B8=D0=B2?= =?UTF-8?q?=D0=BE=D1=82=D0=BD=D0=BE=D0=B3=D0=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ShelterSamePets/ShelterSamePets.jsx | 22 ++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/src/modules/ShelterSamePets/ShelterSamePets.jsx b/src/modules/ShelterSamePets/ShelterSamePets.jsx index 5774565e..3fc20e54 100644 --- a/src/modules/ShelterSamePets/ShelterSamePets.jsx +++ b/src/modules/ShelterSamePets/ShelterSamePets.jsx @@ -20,12 +20,31 @@ const ShelterSamePets = () => { }); }, [type]); + + let animalType; + switch(type) { + case 'cat': + animalType = 'Кошки'; + break; + case 'dog': + animalType = 'Собаки'; + break; + case 'parrot': + animalType = 'Попугаи'; + break; + case 'hamster': + animalType = 'Хомяки'; + break; + default: + animalType = ''; + } + return (
← Вернуться назад -

Наши животные

+

{animalType}

{pets && pets.length !== 0 ? ( <>