From b78e7162984691e68e1443b26f420f60ee76df29 Mon Sep 17 00:00:00 2001 From: giancarlo Date: Mon, 29 Apr 2024 11:55:42 +0700 Subject: [PATCH] Add child props to UserAccountHeader component The UserAccountHeader component in the Dashboard app has been updated to include child props. Now, it allows the rendering of additional components between the PageHeader tags. This enhances its versatility and promotes code reuse in different contexts within the app. --- .../home/(user)/_components/user-account-header.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/web/app/(dashboard)/home/(user)/_components/user-account-header.tsx b/apps/web/app/(dashboard)/home/(user)/_components/user-account-header.tsx index de7aa5952..460c30029 100644 --- a/apps/web/app/(dashboard)/home/(user)/_components/user-account-header.tsx +++ b/apps/web/app/(dashboard)/home/(user)/_components/user-account-header.tsx @@ -13,6 +13,8 @@ export function UserAccountHeader( title={props.title} description={props.description} mobileNavigation={} - /> + > + {props.children} + ); }