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}

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 = () => { } /> } /> - } /> + } /> } /> } />