diff --git a/packages/smarthr-ui/src/components/InformationPanel/InformationPanel.tsx b/packages/smarthr-ui/src/components/InformationPanel/InformationPanel.tsx index 6c6602b71b..063e950551 100644 --- a/packages/smarthr-ui/src/components/InformationPanel/InformationPanel.tsx +++ b/packages/smarthr-ui/src/components/InformationPanel/InformationPanel.tsx @@ -169,12 +169,9 @@ export const InformationPanel: FC = ({ return ( - {/* eslint-disable-next-line smarthr/a11y-heading-in-sectioning-content */} - - - {title} - - + + {title} + {togglable && ( = ({ ) } +const MemoizedHeading = React.memo< + Pick & { + tag: Props['titleTag'] + id: string + className: string + children: Props['title'] + } +>(({ type, children, ...rect }) => ( + + + {children} + + +)) + const TogglableButton: React.FC< Pick & { setActive: (flg: boolean) => void