From 261d1bc3c712bb51605c462374aa9430e45c1d95 Mon Sep 17 00:00:00 2001 From: Michael Zetterberg Date: Mon, 14 Oct 2024 13:47:26 +0200 Subject: [PATCH] fix(SW-126): feature flag communications settings in profile --- .../(protected)/my-pages/profile/@communication/page.tsx | 2 -- app/[lang]/(live)/(protected)/my-pages/profile/layout.tsx | 4 +++- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/[lang]/(live)/(protected)/my-pages/profile/@communication/page.tsx b/app/[lang]/(live)/(protected)/my-pages/profile/@communication/page.tsx index 1cc5c648f..43f1d66ef 100644 --- a/app/[lang]/(live)/(protected)/my-pages/profile/@communication/page.tsx +++ b/app/[lang]/(live)/(protected)/my-pages/profile/@communication/page.tsx @@ -1,6 +1,4 @@ -import { ArrowRightIcon } from "@/components/Icons" import ManagePreferencesButton from "@/components/Profile/ManagePreferencesButton" -import Link from "@/components/TempDesignSystem/Link" import Body from "@/components/TempDesignSystem/Text/Body" import Subtitle from "@/components/TempDesignSystem/Text/Subtitle" import { getIntl } from "@/i18n" diff --git a/app/[lang]/(live)/(protected)/my-pages/profile/layout.tsx b/app/[lang]/(live)/(protected)/my-pages/profile/layout.tsx index 73496fe4e..13512d701 100644 --- a/app/[lang]/(live)/(protected)/my-pages/profile/layout.tsx +++ b/app/[lang]/(live)/(protected)/my-pages/profile/layout.tsx @@ -1,3 +1,5 @@ +import { env } from "@/env/server" + import Divider from "@/components/TempDesignSystem/Divider" import type { ProfileLayoutProps } from "@/types/components/myPages/myProfile/layout" @@ -15,7 +17,7 @@ export default function ProfileLayout({ {profile} {creditCards} - {communication} + {env.HIDE_FOR_NEXT_RELEASE ? null : communication} )