Skip to content

Commit

Permalink
Refactor #4602 - For Panel
Browse files Browse the repository at this point in the history
  • Loading branch information
ulasturann committed Jul 13, 2023
1 parent 0887106 commit 28a02e1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/lib/panel/Panel.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ export const Panel = React.forwardRef((inProps, ref) => {
const collapsed = props.toggleable ? (props.onToggle ? props.collapsed : collapsedState) : false;
const headerId = idState + '_header';
const contentId = idState + '_content';
const { load: loadStyle, unload: unloadStyle } = useStyle(PanelBase.css.styles, { name: 'primereact_panel_style', manual: true });

useStyle(PanelBase.css.styles, { name: 'primereact_panel_style' });

React.useEffect(() => {
loadStyle();
Expand Down

0 comments on commit 28a02e1

Please sign in to comment.