Skip to content

Commit

Permalink
Merge pull request #2345 from Plant-for-the-Planet-org/feature/text-c…
Browse files Browse the repository at this point in the history
…hange-public-profile-sdg

refactor:  update header text on the public profile sdg section.
  • Loading branch information
mariahosfeld authored Jan 9, 2025
2 parents 4734f75 + a9253aa commit 6ca92a0
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
3 changes: 2 additions & 1 deletion public/static/locales/en/profile.json
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,8 @@
"m2": ""
},
"infoAndCtaContainer": {
"sdgCardsSectionHeading": "Restoring Ecosystems & Fighting the Climate Crisis for the SDGs",
"sdgSectionHeadingPrimary": "Restoring Ecosystems & Fighting the Climate Crisis.",
"sdgSectionHeadingSecondary": "Contributing to the Sustainable Development Goals.",
"pfpDonorCircleMember": "Plant-for-the-Planet donor circle member",
"publicProfileActions": {
"becomeAMember": "Become a Member",
Expand Down
10 changes: 7 additions & 3 deletions src/features/common/CarouselSlider/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,10 @@ const CarouselArrow = (props: {
};

interface CarouselSliderProps {
carouselTitle: string;
carouselTitles: {
primary: string;
secondary: string;
};
carouselData: ReactElement[];
settings: Settings;
currentSlide: number;
Expand All @@ -50,7 +53,7 @@ interface CarouselSliderProps {
}

const CarouselSlider = ({
carouselTitle,
carouselTitles,
carouselData,
settings,
currentSlide,
Expand Down Expand Up @@ -108,7 +111,8 @@ const CarouselSlider = ({
<div className={styles.carouselSliderContainer}>
<div className={styles.carouselHeader}>
<div className={styles.titleContainer}>
<h2>{carouselTitle}</h2>
<h2>{carouselTitles.primary}</h2>
<h2>{carouselTitles.secondary}</h2>
</div>
<div className={styles.arrowContainer}>
<CarouselArrow
Expand Down
5 changes: 4 additions & 1 deletion src/features/user/Profile/InfoAndCTA/SDGCardList/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,10 @@ const SDGCardList = () => {
return (
<CarouselSlider
carouselData={sdgCardsDataArray}
carouselTitle={t('infoAndCtaContainer.sdgCardsSectionHeading')}
carouselTitles={{
primary: t('infoAndCtaContainer.sdgSectionHeadingPrimary'),
secondary: t('infoAndCtaContainer.sdgSectionHeadingSecondary'),
}}
settings={settings}
currentSlide={currentSlide}
setCurrentSlide={setCurrentSlide}
Expand Down

0 comments on commit 6ca92a0

Please sign in to comment.