From 7a026665a91bce591ae06f22529d3276dd437831 Mon Sep 17 00:00:00 2001 From: dpalikova Date: Fri, 20 Dec 2024 13:18:43 +0200 Subject: [PATCH] fix: make subscribe dialog responsive --- .../client/campaigns/CampaignDetails.tsx | 3 -- .../notifications/CampaignSubscribeModal.tsx | 31 ++++++++++++++----- .../notifications/GeneralSubscribeModal.tsx | 9 ++++-- 3 files changed, 31 insertions(+), 12 deletions(-) diff --git a/src/components/client/campaigns/CampaignDetails.tsx b/src/components/client/campaigns/CampaignDetails.tsx index 142c4ad78..ccc55a4e8 100644 --- a/src/components/client/campaigns/CampaignDetails.tsx +++ b/src/components/client/campaigns/CampaignDetails.tsx @@ -138,9 +138,6 @@ export default function CampaignDetails({ campaign }: Props) { showExpensesLink={(expensesList && expensesList?.length > 0) || canEditCampaign} /> - {subscribeIsOpen && ( - - )} ({ [`& .${classes.subscribeBtn}`]: { fontSize: theme.typography.pxToRem(16), - background: `${theme.palette.primary}`, }, })) @@ -116,7 +115,12 @@ export default function RenderCampaignSubscribeModal({ campaign, setOpen }: Moda @@ -124,7 +128,7 @@ export default function RenderCampaignSubscribeModal({ campaign, setOpen }: Moda - + {t('common:notifications.subscribe-campaign-title')} @@ -176,10 +180,23 @@ export default function RenderCampaignSubscribeModal({ campaign, setOpen }: Moda : t('common:notifications.subscribe-text-loggedUser')} - + @@ -128,7 +133,7 @@ export default function RenderSubscribeModal({ setOpen }: ModalProps) {