From d9ff111bb3df9b850ce83348643a7398b2602ced Mon Sep 17 00:00:00 2001 From: shinework Date: Thu, 16 May 2024 18:30:42 +0200 Subject: [PATCH] fix: issues with campaign --- .../Places/Detail/CampaignDetailTabs.tsx | 28 ++++++-------- .../Places/Detail/CampaignPlaceDetail.tsx | 38 ++++++++++--------- web/components/Place/PlacesPage.tsx | 38 +++++++++---------- 3 files changed, 49 insertions(+), 55 deletions(-) diff --git a/web/components/Campaign/Places/Detail/CampaignDetailTabs.tsx b/web/components/Campaign/Places/Detail/CampaignDetailTabs.tsx index 499f65c..5cfcbb4 100644 --- a/web/components/Campaign/Places/Detail/CampaignDetailTabs.tsx +++ b/web/components/Campaign/Places/Detail/CampaignDetailTabs.tsx @@ -1,15 +1,11 @@ import { Button, HStack } from '@chakra-ui/react' import { useTranslation } from 'next-i18next' -import useCampaignContext from '~components/Campaign/useCampaignContext' import { useRouter } from 'next/router' import { useContext, useEffect, useState } from 'react' +import useCampaignContext from '~components/Campaign/useCampaignContext' import BookingScheduleContext from '~components/Place/Booking/BookingScheduleContext' -const CampaignDetailTabs = ({ - hasSolidarityDispo, -}: { - hasSolidarityDispo: boolean -}) => { +const CampaignDetailTabs = () => { const { currentCampaign } = useCampaignContext() const { t } = useTranslation('place') const router = useRouter() @@ -38,17 +34,15 @@ const CampaignDetailTabs = ({ borderRadius="18px" padding={2} > - {hasSolidarityDispo && ( - - )} +