Changeset View
Changeset View
Standalone View
Standalone View
web/navigation-panels/settings-switcher.react.js
- This file was moved from web/sidebar/settings-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 css from './left-layout-aside.css'; | |||||
import NavigationPanel from './navigation-panel.react.js'; | import NavigationPanel from './navigation-panel.react.js'; | ||||
import css from './settings-switcher.css'; | |||||
import { updateNavInfoActionType } from '../redux/action-types.js'; | import { updateNavInfoActionType } from '../redux/action-types.js'; | ||||
import { navSettingsSectionSelector } from '../selectors/nav-selectors.js'; | import { navSettingsSectionSelector } from '../selectors/nav-selectors.js'; | ||||
function SettingsSwitcher(): React.Node { | function SettingsSwitcher(): React.Node { | ||||
const dispatch = useDispatch(); | const dispatch = useDispatch(); | ||||
const onClickAccountSettings = React.useCallback( | const onClickAccountSettings = React.useCallback( | ||||
(event: SyntheticEvent<HTMLAnchorElement>) => { | (event: SyntheticEvent<HTMLAnchorElement>) => { | ||||
▲ Show 20 Lines • Show All 49 Lines • Show Last 20 Lines |