Changeset View
Changeset View
Standalone View
Standalone View
web/sidebar/community-drawer.react.js
Show All 13 Lines | |||||
import CommunityDrawerItemCommunity from './community-drawer-item-community.react.js'; | import CommunityDrawerItemCommunity from './community-drawer-item-community.react.js'; | ||||
import { getCommunityDrawerItemHandler } from './community-drawer-item-handlers.react.js'; | import { getCommunityDrawerItemHandler } from './community-drawer-item-handlers.react.js'; | ||||
import css from './community-drawer.css'; | import css from './community-drawer.css'; | ||||
import { ThreadListProvider } from '../chat/thread-list-provider.js'; | import { ThreadListProvider } from '../chat/thread-list-provider.js'; | ||||
import { useSelector } from '../redux/redux-utils.js'; | import { useSelector } from '../redux/redux-utils.js'; | ||||
const maxDepth = 2; | const maxDepth = 2; | ||||
const labelStyles = ['titleLevel0', 'titleLevel1', 'titleLevel2']; | const labelStyles = ['title']; | ||||
const HandlerChat = getCommunityDrawerItemHandler('chat'); | const HandlerChat = getCommunityDrawerItemHandler('chat'); | ||||
const HandlerCal = getCommunityDrawerItemHandler('calendar'); | const HandlerCal = getCommunityDrawerItemHandler('calendar'); | ||||
function CommunityDrawer(): React.Node { | function CommunityDrawer(): React.Node { | ||||
const tab = useSelector(state => state.navInfo.tab); | const tab = useSelector(state => state.navInfo.tab); | ||||
const childThreadInfosMap = useSelector(childThreadInfos); | const childThreadInfosMap = useSelector(childThreadInfos); | ||||
const communities = useSelector(communityThreadSelector); | const communities = useSelector(communityThreadSelector); | ||||
▲ Show 20 Lines • Show All 66 Lines • Show Last 20 Lines |