Skip to content

Commit

Permalink
Fix: imports
Browse files Browse the repository at this point in the history
  • Loading branch information
forabi committed Jun 29, 2019
1 parent 6debe85 commit 2996f26
Show file tree
Hide file tree
Showing 12 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion demo/components/Key/Key.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react';
import * as React from 'react';
import defaultClasses from './Key.module.scss';

export function Key({
Expand Down
2 changes: 1 addition & 1 deletion demo/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import startOfWeek from 'date-fns/start_of_week';
import humanizeDuration from 'humanize-duration';
import mapValues from 'lodash/mapValues';
import 'pepjs';
import React from 'react';
import * as React from 'react';
import CustomProperties from 'react-custom-properties';
import ReactDOM from 'react-dom';
import 'resize-observer-polyfill/dist/ResizeObserver.global';
Expand Down
2 changes: 1 addition & 1 deletion src/components/Cell.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import classcat from 'classcat';
import getMinutes from 'date-fns/get_minutes';
import React from 'react';
import * as React from 'react';
import { CellInfo, ClassNames, DateRange } from '../types';

export const Cell = React.memo(function Cell({
Expand Down
2 changes: 1 addition & 1 deletion src/components/DefaultEventRootComponent.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react';
import * as React from 'react';
import { EventRootProps } from '../types';

export const DefaultEventRootComponent = React.memo(
Expand Down
2 changes: 1 addition & 1 deletion src/components/EventContent.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// @ts-ignore
import VisuallyHidden from '@reach/visually-hidden';
import React from 'react';
import * as React from 'react';
import { SchedulerContext } from '../context';
import { ClassNames } from '../types';
import {
Expand Down
2 changes: 1 addition & 1 deletion src/components/RangeBox.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import classcat from 'classcat';
import invariant from 'invariant';
import Resizable, { ResizeCallback } from 're-resizable';
import React from 'react';
import * as React from 'react';
import Draggable, { DraggableEventHandler } from 'react-draggable';
import { useMousetrap } from '../hooks/useMousetrap';
import { CellInfo } from '../types';
Expand Down
2 changes: 1 addition & 1 deletion src/components/Schedule.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react';
import * as React from 'react';
import {
CellInfo,
ClassNames,
Expand Down
2 changes: 1 addition & 1 deletion src/components/TimeGridScheduler.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import startOfDay from 'date-fns/start_of_day';
import invariant from 'invariant';
import isEqual from 'lodash/isEqual';
import times from 'lodash/times';
import React from 'react';
import * as React from 'react';
import scrollIntoView from 'scroll-into-view-if-needed';
import { SchedulerContext } from '../context';
import { useClickAndDrag } from '../hooks/useClickAndDrag';
Expand Down
2 changes: 1 addition & 1 deletion src/context.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import en from 'date-fns/locale/en';
import React from 'react';
import * as React from 'react';

export const SchedulerContext = React.createContext({ locale: en });
6 changes: 3 additions & 3 deletions src/hooks/useClickAndDrag.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import rxjs, { Observable } from 'rxjs';
import operators from 'rxjs/operators';
import * as React from 'react';
import * as rxjs from 'rxjs';
import * as operators from 'rxjs/operators';
import { Rect } from '../types';
import { createPageMapCoordsToContainer } from '../utils/createPageMapCoordsToContainer';

Expand Down
2 changes: 1 addition & 1 deletion src/hooks/useEventListener.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react';
import * as React from 'react';

export function useEventListener<
K extends keyof HTMLElementEventMap,
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/useMousetrap.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Mousetrap from 'mousetrap';
import React from 'react';
import * as React from 'react';

const { useEffect, useRef } = React;

Expand Down

0 comments on commit 2996f26

Please sign in to comment.