Skip to content

Commit

Permalink
buttons for notification commented
Browse files Browse the repository at this point in the history
  • Loading branch information
RalitsaIlieva committed Dec 11, 2023
1 parent 5c5d348 commit 6c238c6
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 14 deletions.
12 changes: 8 additions & 4 deletions src/components/client/campaigns/CampaignDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,9 @@ export default function CampaignDetails({ campaign }: Props) {
showExpensesLink={(expensesList && expensesList?.length > 0) || canEditCampaign}
/>
<Grid container spacing={8}>
{subscribeIsOpen && (
{/* The following should be uncommented when the backend is ready */}

{/* {subscribeIsOpen && (
<RenderCampaignSubscribeModal setOpen={setSubscribeOpen} campaign={campaign} />
)}
<Grid item xs={12} display="flex" sx={{ mt: 1.5 }}>
Expand All @@ -150,7 +152,7 @@ export default function CampaignDetails({ campaign }: Props) {
<Typography onClick={() => setSubscribeOpen(true)} className={classes.subscribeLink}>
{t('campaigns:cta.subscribe')}
</Typography>
</Grid>
</Grid> */}
{/* just to test the page. to be removed
<SubscriptionPage email={"[email protected]"} campaign={"odit-accusamus-quasi"} consent={"yes"} hash={"fdgfds"}/> */}
<Grid item xs={12} style={{ paddingTop: '20px' }}>
Expand Down Expand Up @@ -210,7 +212,9 @@ export default function CampaignDetails({ campaign }: Props) {
''
)}
<CampaignNewsSection campaign={campaign} canCreateArticle={canEditCampaign} />
{subscribeIsOpen && (
{/* The following should be uncommented when the backend is ready */}

{/* {subscribeIsOpen && (
<RenderCampaignSubscribeModal setOpen={setSubscribeOpen} campaign={campaign} />
)}
<Grid item xs={12} display="flex">
Expand All @@ -224,7 +228,7 @@ export default function CampaignDetails({ campaign }: Props) {
<Typography onClick={() => setSubscribeOpen(true)} className={classes.subscribeLink}>
{t('campaigns:cta.subscribe')}
</Typography>
</Grid>
</Grid> */}
<Grid item xs={12}>
<CampaignInfoOperator campaign={campaign} />
</Grid>
Expand Down
4 changes: 3 additions & 1 deletion src/components/client/index/IndexPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ export default function IndexPage() {
<PartnersSection />
<TeamMembersSection />
<JoinPodkrepiBgSection />
<SubscriptionSection />
{/* The following should be uncommented when the backend is ready */}

{/* <SubscriptionSection /> */}
<FaqSection />
</Layout>
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ export default function PlatformStatisticsSection() {
endIcon={<ArrowForwardSharp />}>
{t('index:platform-statistics.donate-to-those-in-need')}
</HelpThoseInNeedButton>
{subscribeIsOpen && <RenderSubscribeModal setOpen={setSubscribeOpen} />}
{/* The following should be uncommented when the backend is ready */}

{/* {subscribeIsOpen && <RenderSubscribeModal setOpen={setSubscribeOpen} />}
<Grid item xs={12} display="flex" sx={{ mt: 1.5, mb: 0.5 }}>
<EmailIcon
color="primary"
Expand All @@ -52,13 +54,13 @@ export default function PlatformStatisticsSection() {
{t('campaigns:cta.subscribeGeneral')}
</SubscribeHeading>
</Grid>
<Subtitle>{t('campaigns:cta.subscribeGeneralSubtext')}</Subtitle>
<Subtitle>{t('campaigns:cta.subscribeGeneralSubtext')}</Subtitle>
<SubscribeButton
onClick={() => setSubscribeOpen(true)}
variant="contained"
endIcon={<ArrowForwardSharp />}>
{t('campaigns:cta.subscribeGeneralButton')}
</SubscribeButton>
</SubscribeButton> */}
</Grid>
<Statistics />
</SectionGridWrapper>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ export default function TeamMembersSection() {
<OutlinedButton href={routes.about} variant="outlined" endIcon={<ChevronRightIcon />}>
{t('team-section.meet-our-team')}
</OutlinedButton>
{subscribeIsOpen && <RenderSubscribeModal setOpen={setSubscribeOpen} />}
{/* The following should be uncommented when the backend is ready */}

{/* {subscribeIsOpen && <RenderSubscribeModal setOpen={setSubscribeOpen} />}
<Grid item xs={12} display="flex" sx={{ mt: 7.5, mb: 0.5 }} justifyContent="center">
<EmailIcon
color="primary"
Expand All @@ -65,7 +67,7 @@ export default function TeamMembersSection() {
variant="contained"
endIcon={<ArrowForwardSharp />}>
{t('campaigns:cta.subscribe-general-newsletter-button')}
</SubscribeButton>
</SubscribeButton> */}
</Grid>
</SectionGridWrapper>
</Root>
Expand Down
3 changes: 0 additions & 3 deletions src/components/client/layout/Footer/LogoSocialIcons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import { Grid } from '@mui/material'
import { routes } from 'common/routes'
import PodkrepiLogo from 'components/common/brand/PodkrepiLogo'
import { SocialIcons } from './SocialIcons'
// import { SubscribeBtn } from './SubscribeBtn'

export const LogoSocialIcons = () => {
const { locale } = useRouter()
Expand All @@ -20,8 +19,6 @@ export const LogoSocialIcons = () => {
</Link>
</Grid>
<SocialIcons />
{/* Hide until notifications is ready */}
{/* <SubscribeBtn /> */}
</Grid>
)
}
4 changes: 3 additions & 1 deletion src/components/client/layout/Footer/SocialIcons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ export const SocialIcons = () => {
aria-label={t('components.footer.social.instagram')}>
<Instagram />
</ExternalLink>
<Subscription />
{/* The following should be uncommented when the backend is ready */}

{/* <Subscription /> */}
</SocialIconsWrapper>
)
}

0 comments on commit 6c238c6

Please sign in to comment.