From 29a02679c62b644e5c40e9fee1d282ed504ff9af Mon Sep 17 00:00:00 2001 From: Sean Erik Scully Date: Thu, 21 Nov 2024 13:50:13 +0100 Subject: [PATCH] fix: add use client directives on the last files using useContext (#73) --- lib/components/ContextMenu/ContextMenu.tsx | 1 + lib/components/Layout/Layout.tsx | 1 + 2 files changed, 2 insertions(+) diff --git a/lib/components/ContextMenu/ContextMenu.tsx b/lib/components/ContextMenu/ContextMenu.tsx index da0277da..ef528e1b 100644 --- a/lib/components/ContextMenu/ContextMenu.tsx +++ b/lib/components/ContextMenu/ContextMenu.tsx @@ -1,3 +1,4 @@ +'use client'; import type { DropdownPlacement, MenuItemProps } from '../'; import { type MenuItemGroups, MenuItems } from '../'; import { useRootContext } from '../RootProvider'; diff --git a/lib/components/Layout/Layout.tsx b/lib/components/Layout/Layout.tsx index 05a317bd..c5d316a4 100644 --- a/lib/components/Layout/Layout.tsx +++ b/lib/components/Layout/Layout.tsx @@ -1,3 +1,4 @@ +'use client'; import type { ReactNode } from 'react'; import { LayoutBase, LayoutBody, LayoutContent, LayoutSidebar, type LayoutTheme } from '.'; import { Footer, type FooterProps } from '../Footer';