Skip to content

Commit 1f799b3

Browse files
committed
Migrate to import * as React from 'react';
Ref facebook/react#18102 Finally react team officially ditched default import.
1 parent fe80ce3 commit 1f799b3

52 files changed

Lines changed: 54 additions & 54 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

examples/Api.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from 'react'
1+
import * as React from 'react'
22
import transform from 'lodash/transform'
33

44
import metadata from 'component-metadata-loader!react-big-calendar/lib/Calendar'

examples/App.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from 'react'
1+
import * as React from 'react'
22
import Api from './Api'
33
import Intro from './Intro.md'
44
import { render } from 'react-dom'

examples/Card.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from 'react'
1+
import * as React from 'react'
22

33
const propTypes = {}
44

examples/demos/basic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from 'react'
1+
import * as React from 'react'
22
import { Calendar, Views } from 'react-big-calendar'
33
import events from '../events'
44
import * as dates from '../../src/utils/dates'

examples/demos/createEventWithNoOverlap.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from 'react'
1+
import * as React from 'react'
22
import { Calendar, Views } from 'react-big-calendar'
33
import events from '../events'
44
import ExampleControlSlot from '../ExampleControlSlot'

examples/demos/cultures.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from 'react'
1+
import * as React from 'react'
22
import { Calendar } from 'react-big-calendar'
33
import events from '../events'
44
import Layout from 'react-tackle-box/Layout'

examples/demos/customHeader.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from 'react'
1+
import * as React from 'react'
22
import { Calendar } from 'react-big-calendar'
33
import events from '../events'
44

examples/demos/customView.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from 'react'
1+
import * as React from 'react'
22

33
import * as dates from 'date-arithmetic'
44
import events from '../events'

examples/demos/dnd.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from 'react'
1+
import * as React from 'react'
22
import events from '../events'
33
import { Calendar, Views } from 'react-big-calendar'
44
import withDragAndDrop from 'react-big-calendar/lib/addons/dragAndDrop'

examples/demos/dndOutsideSource.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from 'react'
1+
import * as React from 'react'
22
import events from '../events'
33
import { Calendar, Views } from 'react-big-calendar'
44
import withDragAndDrop from 'react-big-calendar/lib/addons/dragAndDrop'

0 commit comments

Comments
 (0)