Calculation/Form: rename renderSections to renderElements
This commit is contained in:
parent
d5dd6c6805
commit
63b9a93a16
@ -1,8 +1,8 @@
|
||||
import renderSections from 'Components/Calculation/layout/renderSections';
|
||||
import renderElements from 'Components/Calculation/lib/renderElements';
|
||||
import config from './config';
|
||||
|
||||
function Leasing() {
|
||||
return renderSections(config);
|
||||
return renderElements(config);
|
||||
}
|
||||
|
||||
export default Leasing;
|
||||
|
||||
@ -2,7 +2,7 @@ import { Box } from 'UIKit/grid';
|
||||
import elementsRender from '../config/elements-render';
|
||||
import type { SectionsConfig } from '../types/sections';
|
||||
|
||||
function renderSections(config: SectionsConfig) {
|
||||
function renderElements(config: SectionsConfig) {
|
||||
const rows = config.map(([elements, style], i) => {
|
||||
const renderedElements = elements.map((elementName) => {
|
||||
const render = elementsRender[elementName]?.render;
|
||||
@ -38,4 +38,4 @@ function renderSections(config: SectionsConfig) {
|
||||
);
|
||||
}
|
||||
|
||||
export default renderSections;
|
||||
export default renderElements;
|
||||
Loading…
x
Reference in New Issue
Block a user