Changeset View
Changeset View
Standalone View
Standalone View
web/topbar/app-switcher.react.js
- This file was moved from web/sidebar/app-switcher.react.js.
// @flow | // @flow | ||||
import * as React from 'react'; | import * as React from 'react'; | ||||
import { useDispatch } from 'react-redux'; | import { useDispatch } from 'react-redux'; | ||||
import { | import { | ||||
mostRecentlyReadThreadSelector, | mostRecentlyReadThreadSelector, | ||||
unreadCount, | unreadCount, | ||||
} from 'lib/selectors/thread-selectors'; | } from 'lib/selectors/thread-selectors'; | ||||
import { updateNavInfoActionType } from '../redux/action-types'; | import { updateNavInfoActionType } from '../redux/action-types'; | ||||
import { useSelector } from '../redux/redux-utils'; | import { useSelector } from '../redux/redux-utils'; | ||||
import { navTabSelector } from '../selectors/nav-selectors.js'; | import { navTabSelector } from '../selectors/nav-selectors.js'; | ||||
import css from '../sidebar/left-layout-aside.css'; | |||||
import NavigationPanel from '../sidebar/navigation-panel.react'; | |||||
import SWMansionIcon from '../SWMansionIcon.react'; | import SWMansionIcon from '../SWMansionIcon.react'; | ||||
import css from './left-layout-aside.css'; | |||||
import NavigationPanel from './navigation-panel.react'; | |||||
function AppSwitcher(): React.Node { | function AppSwitcher(): React.Node { | ||||
const activeChatThreadID = useSelector( | const activeChatThreadID = useSelector( | ||||
state => state.navInfo.activeChatThreadID, | state => state.navInfo.activeChatThreadID, | ||||
); | ); | ||||
const mostRecentlyReadThread = useSelector(mostRecentlyReadThreadSelector); | const mostRecentlyReadThread = useSelector(mostRecentlyReadThreadSelector); | ||||
const isActiveThreadCurrentlyUnread = useSelector( | const isActiveThreadCurrentlyUnread = useSelector( | ||||
state => | state => | ||||
▲ Show 20 Lines • Show All 110 Lines • Show Last 20 Lines |