diff --git a/web/sidebar/community-drawer-item-community.react.js b/web/sidebar/community-drawer-item-community.react.js --- a/web/sidebar/community-drawer-item-community.react.js +++ b/web/sidebar/community-drawer-item-community.react.js @@ -6,6 +6,7 @@ import { useResolvedThreadInfo } from 'lib/utils/entity-helpers.js'; import { getCommunityDrawerItemCommunityHandler } from './community-drawer-item-community-handlers.react.js'; +import type { CommunityDrawerItemCommunityHandler } from './community-drawer-item-handler.react.js'; import css from './community-drawer-item.css'; import type { DrawerItemProps } from './community-drawer-item.react.js'; import { @@ -25,12 +26,12 @@ const Handler = getCommunityDrawerItemCommunityHandler(handlerType); - const [handler, setHandler] = React.useState({ - onClick: () => {}, - isActive: false, - expanded: false, - toggleExpanded: () => {}, - }); + const [handler, setHandler] = + React.useState({ + onClick: () => {}, + isActive: false, + expanded: false, + }); const children = React.useMemo( () => diff --git a/web/sidebar/community-drawer-item.react.js b/web/sidebar/community-drawer-item.react.js --- a/web/sidebar/community-drawer-item.react.js +++ b/web/sidebar/community-drawer-item.react.js @@ -6,6 +6,7 @@ import type { CommunityDrawerItemData } from 'lib/utils/drawer-utils.react.js'; import { useResolvedThreadInfo } from 'lib/utils/entity-helpers.js'; +import type { CommunityDrawerItemHandler } from './community-drawer-item-handler.react.js'; import type { HandlerProps } from './community-drawer-item-handlers.react.js'; import { getCommunityDrawerItemHandler } from './community-drawer-item-handlers.react.js'; import css from './community-drawer-item.css'; @@ -31,10 +32,11 @@ handlerType, } = props; - const [handler, setHandler] = React.useState({ + const [handler, setHandler] = React.useState({ onClick: () => {}, expanded: false, toggleExpanded: () => {}, + isActive: false, }); const Handler = getCommunityDrawerItemHandler(handlerType);