From 7d392c868e060a111faac31810521a16ea0f6d05 Mon Sep 17 00:00:00 2001 From: seniorliketocode Date: Wed, 25 Dec 2024 19:10:16 +0530 Subject: [PATCH] fix(Toolbar): add forwardRef Toolbar component Signed-off-by: seniorliketocode --- src/base/Toolbar/Toolbar.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/base/Toolbar/Toolbar.tsx b/src/base/Toolbar/Toolbar.tsx index 98b2fd35e..390d8eccf 100644 --- a/src/base/Toolbar/Toolbar.tsx +++ b/src/base/Toolbar/Toolbar.tsx @@ -1,7 +1,8 @@ import { Toolbar as MuiToolbar, type ToolbarProps as MuiToolbarProps } from '@mui/material'; +import React from 'react'; -export function Toolbar(props: MuiToolbarProps): JSX.Element { - return ; -} +const Toolbar = React.forwardRef((props, ref) => { + return ; +}); export default Toolbar;