Rename getSlotComponents to getSlotElements

This commit is contained in:
Chi Vinh Le
2017-04-01 00:52:00 +07:00
parent 5a5f1bc508
commit cc2af70962
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -1,12 +1,12 @@
import React, {Component} from 'react';
import {getSlotComponents} from 'coral-framework/helpers/plugins';
import {getSlotElements} from 'coral-framework/helpers/plugins';
class Slot extends Component {
render() {
const {fill, ...rest} = this.props;
return (
<div>
{getSlotComponents(fill, rest)}
{getSlotElements(fill, rest)}
</div>
);
}
+1 -1
View File
@@ -41,7 +41,7 @@ function getConfig(plugin) {
/**
* getSlotComponents returns React Elements for given slot.
*/
export function getSlotComponents(slot, props = {}) {
export function getSlotElements(slot, props = {}) {
return loaded.components
.map((o, i) => ({
component: o.module,