From 26266bc607c2aefbb84c28cfe3ac22e326d2f9e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20B=C3=BCchele?= Date: Tue, 29 Jan 2019 09:26:21 -0800 Subject: [PATCH] fix imports Summary: Incorrect imports were causing an error: `invariant is not a function`. This fixes the imports. Reviewed By: jknoxville, priteshrnandgaonkar Differential Revision: D13859945 fbshipit-source-id: 2a5f5f87b4df2840c8e6b749acb293b145805afa --- src/ui/components/Interactive.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ui/components/Interactive.js b/src/ui/components/Interactive.js index 4ea7710c8..0834b9f43 100644 --- a/src/ui/components/Interactive.js +++ b/src/ui/components/Interactive.js @@ -14,8 +14,8 @@ import { SNAP_SIZE, } from '../../utils/snap.js'; import styled from '../styled/index.js'; -import * as invariant from 'invariant'; -import * as React from 'react'; +import invariant from 'invariant'; +import React from 'react'; const WINDOW_CURSOR_BOUNDARY = 5; @@ -70,7 +70,7 @@ type InteractiveProps = {| innerRef?: (elem: HTMLElement) => void, style?: Object, className?: string, - children?: React.Element<*>, + children?: React$Element<*>, |}; type InteractiveState = {|