Skip to content

Commit

Permalink
chore: InformationPanelをリファクタリング
Browse files Browse the repository at this point in the history
  • Loading branch information
AtsushiM committed Jan 16, 2025
1 parent 628038c commit 19857fc
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ export const InformationPanel: FC<Props> = ({
setActive={setActive}
contentId={contentId}
className={currentStyles.togglableButton}
decorators={decorators}
/>
)}
</Cluster>
Expand All @@ -205,12 +206,13 @@ const MemoizedHeading = React.memo<
))

const TogglableButton: React.FC<
Pick<Props, 'active' | 'onClickTrigger'> & {
Pick<Props, 'onClickTrigger' | 'decorators'> & {
active: boolean
setActive: (flg: boolean) => void
contentId: string
className: string
}
> = ({ active, onClickTrigger, setActive, contentId, className }) => {
> = ({ active, onClickTrigger, setActive, contentId, className, decorators }) => {
const handleClickTrigger = useCallback(() => {
if (onClickTrigger) {
onClickTrigger(active)
Expand Down

0 comments on commit 19857fc

Please sign in to comment.