From 4ce2ffe30c4ea2051842369742256ad3cbdc3d39 Mon Sep 17 00:00:00 2001 From: MaryWylde Date: Thu, 5 Mar 2026 16:42:07 +0400 Subject: [PATCH 1/3] hotfix: AM Flag --- .../LongevitySubSection.module.scss | 10 ++++++++++ .../LongevitySubSection/LongevitySubSection.tsx | 5 ++++- .../LongevitySubSection/LongevitySubSection.types.ts | 1 + src/layouts/DietLayout/DietLayout.tsx | 1 + 4 files changed, 16 insertions(+), 1 deletion(-) diff --git a/src/components/longevity/LongevitySubSection/LongevitySubSection.module.scss b/src/components/longevity/LongevitySubSection/LongevitySubSection.module.scss index bd60ff5..4781bd6 100644 --- a/src/components/longevity/LongevitySubSection/LongevitySubSection.module.scss +++ b/src/components/longevity/LongevitySubSection/LongevitySubSection.module.scss @@ -121,6 +121,16 @@ } } } + .foodChoicesContent { + p:first-child { + margin-bottom: 10px; + } + img { + width: 16px; + margin-bottom: -2px; + height: 16px; + } + } } } diff --git a/src/components/longevity/LongevitySubSection/LongevitySubSection.tsx b/src/components/longevity/LongevitySubSection/LongevitySubSection.tsx index 137be6a..914874a 100644 --- a/src/components/longevity/LongevitySubSection/LongevitySubSection.tsx +++ b/src/components/longevity/LongevitySubSection/LongevitySubSection.tsx @@ -26,6 +26,7 @@ const LongevitySubSection: FC = ({ date, isHacks, damageTypeHeadline, + isFoodChoices, }) => { const { habitTooltipTitle } = longevityData[locale]; const isMobile = useIsWidthLessThan(956); @@ -95,7 +96,9 @@ const LongevitySubSection: FC = ({ {description ? (
) : (
{children}
diff --git a/src/components/longevity/LongevitySubSection/LongevitySubSection.types.ts b/src/components/longevity/LongevitySubSection/LongevitySubSection.types.ts index 8a4a519..27b281d 100644 --- a/src/components/longevity/LongevitySubSection/LongevitySubSection.types.ts +++ b/src/components/longevity/LongevitySubSection/LongevitySubSection.types.ts @@ -8,4 +8,5 @@ export type LongevitySubSectionProps = { date?: string; isHacks?: boolean; damageTypeHeadline?: string; + isFoodChoices?: boolean; }; diff --git a/src/layouts/DietLayout/DietLayout.tsx b/src/layouts/DietLayout/DietLayout.tsx index b37774c..d9ed356 100644 --- a/src/layouts/DietLayout/DietLayout.tsx +++ b/src/layouts/DietLayout/DietLayout.tsx @@ -166,6 +166,7 @@ const DietLayout: FC = ({ locale, data }) => { /> Date: Sun, 8 Mar 2026 21:02:02 +0400 Subject: [PATCH 2/3] hotfix: add pagination to Articles --- src/api/strapi.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/strapi.ts b/src/api/strapi.ts index b2349f0..7f8ca82 100644 --- a/src/api/strapi.ts +++ b/src/api/strapi.ts @@ -28,7 +28,7 @@ export const getArticles = async (locale: TLocales) => { const articleUrl = `${process.env.NEXT_PUBLIC_STRAPI}/api/articles?locale=${currentLocale} &populate[coverImage]=* &populate[footerImage]=* -&populate[OGTags][populate]=ogImage`; +&populate[OGTags][populate]=ogImage&pagination[pageSize]=50`; const articles: TArticle[] = await fetch(articleUrl) .then(resp => resp.json()) .then(json => json?.data || []); From 52094bdbf372569bb260a4c38c720c0b742529c4 Mon Sep 17 00:00:00 2001 From: MaryWylde Date: Thu, 12 Mar 2026 16:12:33 +0400 Subject: [PATCH 3/3] hotfix: prevent undefined state of longevity mobile navigation --- src/components/longevity/MobileNavigation/MobileNavigation.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/longevity/MobileNavigation/MobileNavigation.tsx b/src/components/longevity/MobileNavigation/MobileNavigation.tsx index 2afd249..e61feda 100644 --- a/src/components/longevity/MobileNavigation/MobileNavigation.tsx +++ b/src/components/longevity/MobileNavigation/MobileNavigation.tsx @@ -249,7 +249,7 @@ const MobileNavigation: FC = () => { onClick={() => nextPathname && router.push(nextPathname.path)} > {nextBtn}{' '} - {nextPathname.name} + {nextPathname?.name} );