From 9d9adc81951a072664523c0802d3bcbc014aeefc Mon Sep 17 00:00:00 2001 From: Chi Vinh Le Date: Thu, 15 Mar 2018 18:38:21 +0100 Subject: [PATCH] Rename typo --- client/coral-framework/components/IfSlotIsEmpty.js | 4 ++-- client/coral-framework/components/IfSlotIsNotEmpty.js | 4 ++-- client/coral-framework/components/Slot.js | 4 ++-- client/coral-framework/hocs/index.js | 2 +- .../{withCombatPassthrough.js => withCompatPassthrough.js} | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) rename client/coral-framework/hocs/{withCombatPassthrough.js => withCompatPassthrough.js} (95%) diff --git a/client/coral-framework/components/IfSlotIsEmpty.js b/client/coral-framework/components/IfSlotIsEmpty.js index 599b21401..dc7b7f41d 100644 --- a/client/coral-framework/components/IfSlotIsEmpty.js +++ b/client/coral-framework/components/IfSlotIsEmpty.js @@ -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, }) diff --git a/client/coral-framework/components/IfSlotIsNotEmpty.js b/client/coral-framework/components/IfSlotIsNotEmpty.js index be67d4e4f..6318e6447 100644 --- a/client/coral-framework/components/IfSlotIsNotEmpty.js +++ b/client/coral-framework/components/IfSlotIsNotEmpty.js @@ -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, }) diff --git a/client/coral-framework/components/Slot.js b/client/coral-framework/components/Slot.js index a70b9ccf9..a2f90161f 100644 --- a/client/coral-framework/components/Slot.js +++ b/client/coral-framework/components/Slot.js @@ -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, diff --git a/client/coral-framework/hocs/index.js b/client/coral-framework/hocs/index.js index e16e09941..26d69f8e7 100644 --- a/client/coral-framework/hocs/index.js +++ b/client/coral-framework/hocs/index.js @@ -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'; diff --git a/client/coral-framework/hocs/withCombatPassthrough.js b/client/coral-framework/hocs/withCompatPassthrough.js similarity index 95% rename from client/coral-framework/hocs/withCombatPassthrough.js rename to client/coral-framework/hocs/withCompatPassthrough.js index 84dbdb492..57589854d 100644 --- a/client/coral-framework/hocs/withCombatPassthrough.js +++ b/client/coral-framework/hocs/withCompatPassthrough.js @@ -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`. */