Skip to content
This repository has been archived by the owner on Nov 26, 2018. It is now read-only.

Commit

Permalink
fix: remove "prop-types" from peer deps
Browse files Browse the repository at this point in the history
  • Loading branch information
gregberge committed Apr 25, 2017
1 parent 37c9533 commit 089aef7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
"recompose"
],
"peerDependencies": {
"prop-types": "^15.5.8",
"react": "^15.5.4"
},
"dependencies": {
Expand Down
4 changes: 2 additions & 2 deletions src/utils/createHOCFromMapper.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/* eslint-disable no-console */
import { Component } from 'react'
import PropTypes from 'prop-types'
import createBehaviorSubject from './createBehaviorSubject'
import createSymbol from './createSymbol'
import asyncThrow from './asyncThrow'
Expand All @@ -9,10 +8,11 @@ import { getConfig } from '../setConfig'
import { config as obsConfig } from '../setObservableConfig'

const MAPPERS_INFO = createSymbol('mappersInfo')
const observablePropType = () => {}

const createComponentFromMappers = (mappers, childFactory) => {
const { observablesKey: OBSERVABLES } = getConfig()
const CONTEXT_TYPES = { [OBSERVABLES]: PropTypes.object }
const CONTEXT_TYPES = { [OBSERVABLES]: observablePropType }

return class extends Component {
static [MAPPERS_INFO] = { mappers, childFactory };
Expand Down

0 comments on commit 089aef7

Please sign in to comment.