From eb542067af9a826f6e3e849b63ec73eb5553f50e Mon Sep 17 00:00:00 2001 From: Joel Date: Mon, 25 Nov 2024 16:31:49 +0800 Subject: [PATCH] feat: add cookie management (#11061) --- web/app/components/base/ga/index.tsx | 6 ++++++ web/app/signin/layout.tsx | 15 --------------- 2 files changed, 6 insertions(+), 15 deletions(-) diff --git a/web/app/components/base/ga/index.tsx b/web/app/components/base/ga/index.tsx index 219724113f..0015edbfca 100644 --- a/web/app/components/base/ga/index.tsx +++ b/web/app/components/base/ga/index.tsx @@ -47,6 +47,12 @@ gtag('config', '${gaIdMaps[gaType]}'); nonce={nonce!} > + {/* Cookie banner */} + ) diff --git a/web/app/signin/layout.tsx b/web/app/signin/layout.tsx index 342876bc53..b404c5c4de 100644 --- a/web/app/signin/layout.tsx +++ b/web/app/signin/layout.tsx @@ -1,25 +1,10 @@ -import Script from 'next/script' import Header from './_header' import style from './page.module.css' import cn from '@/utils/classnames' -import { IS_CE_EDITION } from '@/config' export default async function SignInLayout({ children }: any) { return <> - {!IS_CE_EDITION && ( - <> - - - - )} -