Changeset View
Changeset View
Standalone View
Standalone View
web/sidebar/community-picker.react.js
// @flow | // @flow | ||||
import classNames from 'classnames'; | import classNames from 'classnames'; | ||||
import * as React from 'react'; | import * as React from 'react'; | ||||
import { useDispatch } from 'react-redux'; | import { useDispatch } from 'react-redux'; | ||||
import SWMansionIcon from 'lib/components/SWMansionIcon.react.js'; | |||||
import { updateNavInfoActionType } from '../redux/action-types.js'; | import { updateNavInfoActionType } from '../redux/action-types.js'; | ||||
import { useSelector } from '../redux/redux-utils.js'; | import { useSelector } from '../redux/redux-utils.js'; | ||||
import SWMansionIcon from '../SWMansionIcon.react'; | |||||
import css from './community-picker.css'; | import css from './community-picker.css'; | ||||
function CommunityPicker(): React.Node { | function CommunityPicker(): React.Node { | ||||
const dispatch = useDispatch(); | const dispatch = useDispatch(); | ||||
const openAccountSettings = React.useCallback( | const openAccountSettings = React.useCallback( | ||||
(event: SyntheticEvent<HTMLButtonElement>) => { | (event: SyntheticEvent<HTMLButtonElement>) => { | ||||
event.preventDefault(); | event.preventDefault(); | ||||
▲ Show 20 Lines • Show All 48 Lines • Show Last 20 Lines |