Perform changes conform instructions from armanio123

This commit is contained in:
jrasmusbm
2018-09-05 10:46:22 +02:00
parent f2304c575a
commit ace3bf7067
2 changed files with 7 additions and 4 deletions
+4 -2
View File
@@ -6,7 +6,9 @@
import * as React from "react";
export interface Shape {
export as namespace ReactVisibilitySensor;
interface Shape {
top?: number;
left?: number;
bottom?: number;
@@ -35,4 +37,4 @@ interface Props {
declare const ReactVisibilitySensor: React.StatelessComponent<Props>;
export default ReactVisibilitySensor;
export = ReactVisibilitySensor;
@@ -1,9 +1,10 @@
import * as React from "react";
import ReactVisibilitySensor, { Shape } from "react-visibility-sensor";
import * as ReactVisibilitySensor from "react-visibility-sensor";
const num = 1;
const bool = true;
const shape: Shape = { top: num, left: num, bottom: num, right: num };
const shape = { top: num, left: num, bottom: num, right: num };
const component = (
<ReactVisibilitySensor