Upgrade prettier
Summary: ohsopretty Reviewed By: fabiomassimo Differential Revision: D28930276 fbshipit-source-id: faaca8cc53c2fe42a8e010d5c1b1d79e89190858
This commit is contained in:
committed by
Facebook GitHub Bot
parent
25b7f88843
commit
edbb41b49b
@@ -114,8 +114,9 @@ const KeyboardShortcutInput = (props: {
|
||||
);
|
||||
const [pressedKeys, setPressedKeys] =
|
||||
useState<PressedKeys>(initialPressedKeys);
|
||||
const [isShortcutValid, setIsShortcutValid] =
|
||||
useState<boolean | undefined>(undefined);
|
||||
const [isShortcutValid, setIsShortcutValid] = useState<boolean | undefined>(
|
||||
undefined,
|
||||
);
|
||||
|
||||
useEffect(() => {
|
||||
if (!isShortcutValid) {
|
||||
|
||||
@@ -22,8 +22,9 @@ const Container = styled.div({
|
||||
});
|
||||
Container.displayName = 'ContextMenuProvider:Container';
|
||||
|
||||
export const ContextMenuContext =
|
||||
createContext<ContextMenuManager | undefined>(undefined);
|
||||
export const ContextMenuContext = createContext<ContextMenuManager | undefined>(
|
||||
undefined,
|
||||
);
|
||||
/**
|
||||
* Flipper's root is already wrapped with this component, so plugins should not
|
||||
* need to use this. ContextMenu is what you probably want to use.
|
||||
|
||||
@@ -63,11 +63,10 @@ const PopoverElement = (props: {
|
||||
children: ReactNode;
|
||||
}) => {
|
||||
const ref = useRef<HTMLDivElement | null>(null);
|
||||
const [dimensions, setDimensions] =
|
||||
useState<{
|
||||
width: number;
|
||||
height: number;
|
||||
} | null>(null);
|
||||
const [dimensions, setDimensions] = useState<{
|
||||
width: number;
|
||||
height: number;
|
||||
} | null>(null);
|
||||
useEffect(() => {
|
||||
if (!ref.current) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user