From 7c051d1cd759a6b39469631501e22217b40e0bdf Mon Sep 17 00:00:00 2001 From: LufyCZ Date: Sat, 18 Jan 2025 17:12:45 +0000 Subject: [PATCH] feat(apps/faq): add mava script --- apps/web/src/app/(cms)/faq/layout.tsx | 2 ++ apps/web/src/app/_common/mava-script.tsx | 17 +++++++++ apps/web/src/app/layout.tsx | 46 +++++++++++++----------- 3 files changed, 45 insertions(+), 20 deletions(-) create mode 100644 apps/web/src/app/_common/mava-script.tsx diff --git a/apps/web/src/app/(cms)/faq/layout.tsx b/apps/web/src/app/(cms)/faq/layout.tsx index d237b669ae..e974920af8 100644 --- a/apps/web/src/app/(cms)/faq/layout.tsx +++ b/apps/web/src/app/(cms)/faq/layout.tsx @@ -1,8 +1,10 @@ import { Suspense } from 'react' +import { MavaScript } from 'src/app/_common/mava-script' export default function Layout({ children }: { children: React.ReactNode }) { return ( <> + {children} ) diff --git a/apps/web/src/app/_common/mava-script.tsx b/apps/web/src/app/_common/mava-script.tsx new file mode 100644 index 0000000000..ea8a45baae --- /dev/null +++ b/apps/web/src/app/_common/mava-script.tsx @@ -0,0 +1,17 @@ +'use client' + +import Script from 'next/script' + +export function MavaScript() { + return ( +