mirror of
https://github.com/wassname/talk.git
synced 2026-07-07 07:44:35 +08:00
Rename typo
This commit is contained in:
@@ -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,
|
||||
})
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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';
|
||||
|
||||
+1
-1
@@ -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`.
|
||||
*/
|
||||
Reference in New Issue
Block a user