Upgrade prettier

Summary: ohsopretty

Reviewed By: fabiomassimo

Differential Revision: D28930276

fbshipit-source-id: faaca8cc53c2fe42a8e010d5c1b1d79e89190858
This commit is contained in:
Pascal Hartig
2021-06-07 04:58:32 -07:00
committed by Facebook GitHub Bot
parent 25b7f88843
commit edbb41b49b
12 changed files with 26 additions and 25 deletions

View File

@@ -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) {

View File

@@ -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.

View File

@@ -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;