From 71415a0044b09583d17f6b8dda47afe3f74fbf80 Mon Sep 17 00:00:00 2001 From: Vlada Melnikova Date: Tue, 29 Aug 2023 21:26:00 +0300 Subject: [PATCH 1/2] fix: fix path --- src/pages/App/App.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/App/App.jsx b/src/pages/App/App.jsx index 070f078f..bc7fb12d 100644 --- a/src/pages/App/App.jsx +++ b/src/pages/App/App.jsx @@ -199,7 +199,7 @@ const App = () => { } /> } /> - } /> + } /> } /> } /> From 4c2784c4a95ed74d0aa35b5e80a964eb24f91516 Mon Sep 17 00:00:00 2001 From: Tatiana Ponomareva Date: Wed, 30 Aug 2023 16:50:38 +0400 Subject: [PATCH 2/2] feat: add vacancyForm functionality only for owners (#177) --- src/modules/ShelterVacancies/ShelterVacancies.jsx | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/modules/ShelterVacancies/ShelterVacancies.jsx b/src/modules/ShelterVacancies/ShelterVacancies.jsx index 36b226c9..f8f35a3c 100644 --- a/src/modules/ShelterVacancies/ShelterVacancies.jsx +++ b/src/modules/ShelterVacancies/ShelterVacancies.jsx @@ -18,7 +18,7 @@ const ShelterVacancies = () => { const [isLoading, setIsLoading] = useState(true); - const { shelter } = useOutletContext(); + const { shelter, isOwner } = useOutletContext(); useEffect(() => { if (!shelter.id) return; @@ -66,10 +66,11 @@ const ShelterVacancies = () => {

Вакансии приюта «{shelter.name}»

- - + {isOwner && ( + + )}

Всего вакансий: {vacanciesList.length}