Device Dropdown
Summary: This diff adds the device switcher, filling the switcher with apps and devices. Reviewed By: cekkaewnumchai Differential Revision: D24053787 fbshipit-source-id: 4f69835a12eec90a0e5704f71c8ceed5509f61ce
This commit is contained in:
committed by
Facebook GitHub Bot
parent
79ac1ef009
commit
c38a4413dc
@@ -12,7 +12,7 @@ import {
|
||||
shallowEqual,
|
||||
useDispatch as useDispatchBase,
|
||||
} from 'react-redux';
|
||||
import {Dispatch} from 'redux';
|
||||
import {Dispatch as ReduxDispatch} from 'redux';
|
||||
import {State, Actions} from '../reducers/index';
|
||||
|
||||
/**
|
||||
@@ -27,9 +27,11 @@ export function useStore<Selected>(
|
||||
return useSelector(selector, equalityFn);
|
||||
}
|
||||
|
||||
export type Dispatch = ReduxDispatch<Actions>;
|
||||
|
||||
/**
|
||||
* Strongly typed useDispatch wrapper for the Flipper redux store.
|
||||
*/
|
||||
export function useDispatch(): Dispatch<Actions> {
|
||||
return useDispatchBase();
|
||||
export function useDispatch(): Dispatch {
|
||||
return useDispatchBase() as any;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user