react-page-layout
Advanced tools
Comparing version 0.9.4 to 0.9.5
@@ -13,4 +13,3 @@ { | ||
"react": "^15.4.2", | ||
"react-dom": "^15.4.2", | ||
"react-page-layout": "file:../" | ||
"react-dom": "^15.4.2" | ||
}, | ||
@@ -17,0 +16,0 @@ "devDependencies": { |
import React, { Component } from 'react'; | ||
import { LayoutProvider } from 'react-page-layout'; | ||
import { LayoutProvider } from '../../src'; | ||
import FullLayout from './FullLayout'; | ||
@@ -4,0 +4,0 @@ import PanelLayout from './PanelLayout'; |
import React, { PropTypes } from 'react'; | ||
import { Slot } from 'react-page-layout'; | ||
import { Slot } from '../../src'; | ||
@@ -4,0 +4,0 @@ function PrivateLayout(props) { |
import React, { PureComponent } from 'react'; | ||
import { Page, Section } from 'react-page-layout'; | ||
import { Page, Section } from '../../src'; | ||
import Radios from './Radios'; | ||
@@ -4,0 +4,0 @@ |
import React, { PropTypes } from 'react'; | ||
import { Slot } from 'react-page-layout'; | ||
import { Slot } from '../../src'; | ||
@@ -4,0 +4,0 @@ function PrivateLayout(props) { |
{ | ||
"name": "react-page-layout", | ||
"version": "0.9.4", | ||
"version": "0.9.5", | ||
"description": "Layout system for react", | ||
@@ -5,0 +5,0 @@ "author": "Jose R Villalon Soler", |
@@ -20,3 +20,4 @@ import React, { PureComponent, PropTypes } from 'react'; | ||
if (isPlainObject(parent)) { | ||
if (React.Component.isPrototypeOf(Section) || React.PureComponent.isPrototypeOf(Section)) { | ||
// Check if the element is a section | ||
if (parent.type && parent.type.displayName === 'Section') { | ||
return { [parent.props.slot]: parent }; | ||
@@ -23,0 +24,0 @@ } |
@@ -6,2 +6,4 @@ /* eslint no-unreachable: off, react/require-render-return: off */ | ||
static displayName = 'Section'; | ||
static propTypes = { | ||
@@ -8,0 +10,0 @@ slot: PropTypes.string.isRequired, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
793
1218706