Skip to content

Commit

Permalink
fix(Toolbar): add forwardRef Toolbar component
Browse files Browse the repository at this point in the history
Signed-off-by: seniorliketocode <[email protected]>
  • Loading branch information
capricorn-32 committed Dec 25, 2024
1 parent 72bf79d commit 7d392c8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/base/Toolbar/Toolbar.tsx
Original file line number Diff line number Diff line change
@@ -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 <MuiToolbar {...props} />;
}
const Toolbar = React.forwardRef<HTMLDivElement, MuiToolbarProps>((props, ref) => {
return <MuiToolbar {...props} ref={ref} />;
});

export default Toolbar;

0 comments on commit 7d392c8

Please sign in to comment.