Rename typo

This commit is contained in:
Chi Vinh Le
2018-03-15 18:38:21 +01:00
parent 82280a7da7
commit 9d9adc8195
5 changed files with 8 additions and 8 deletions
@@ -1,6 +1,6 @@
import React, { Children } from 'react';
import PropTypes from 'prop-types';
import { withSlotElements, withCombatPassthrough } from '../hocs';
import { withSlotElements, withCompatPassthrough } from '../hocs';
import { compose } from 'recompose';
class IfSlotIsEmpty extends React.Component {
@@ -26,7 +26,7 @@ IfSlotIsEmpty.propTypes = {
const omitProps = ['slot', 'children'];
export default compose(
withCombatPassthrough(omitProps),
withCompatPassthrough(omitProps),
withSlotElements({
slot: props => props.slot,
})
@@ -1,6 +1,6 @@
import React, { Children } from 'react';
import PropTypes from 'prop-types';
import { withSlotElements, withCombatPassthrough } from '../hocs';
import { withSlotElements, withCompatPassthrough } from '../hocs';
import { compose } from 'recompose';
class IfSlotIsNotEmpty extends React.Component {
@@ -26,7 +26,7 @@ IfSlotIsNotEmpty.propTypes = {
const omitProps = ['slot', 'children'];
export default compose(
withCombatPassthrough(omitProps),
withCompatPassthrough(omitProps),
withSlotElements({
slot: props => props.slot,
})
+2 -2
View File
@@ -5,7 +5,7 @@ import { connect } from 'react-redux';
import kebabCase from 'lodash/kebabCase';
import PropTypes from 'prop-types';
import get from 'lodash/get';
import { withSlotElements, withCombatPassthrough } from '../hocs';
import { withSlotElements, withCompatPassthrough } from '../hocs';
import { compose } from 'recompose';
class Slot extends React.Component {
@@ -96,7 +96,7 @@ const mapStateToProps = state => ({
});
export default compose(
withCombatPassthrough(omitProps),
withCompatPassthrough(omitProps),
withSlotElements({
slot: props => props.fill,
size: props => props.size,
+1 -1
View File
@@ -12,7 +12,7 @@ export { default as withForgotPassword } from './withForgotPassword';
export { default as withSetUsername } from './withSetUsername';
export { default as withPopupAuthHandler } from './withPopupAuthHandler';
export { default as withEnumValues } from './withEnumValues';
export { default as withCombatPassthrough } from './withCombatPassthrough';
export { default as withCompatPassthrough } from './withCompatPassthrough';
export { default as withSlotElements } from './withSlotElements';
export { default as withVariables } from './withVariables';
export { default as WithRefetch } from './withRefetch';
@@ -43,7 +43,7 @@ function getPassthrough(props, omitProps) {
/**
* @Deprecated
* withCombatPassthrough is a compatibility HOC that supports our old
* withCompatPassthrough is a compatibility HOC that supports our old
* API which puts unknown props and `queryData` to `passhtrough` to be
* used with HOC `withSlotElements`.
*/