Skip to content

Commit

Permalink
Refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky committed Dec 26, 2021
1 parent 6aa46be commit 3f8e2d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/system/footer/shared_2.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const getPropDimensions = function (systems) {
const propNames = getUniquePropNames(normalizedSystems)
const propEntries = getUniquePropEntries(propNames, normalizedSystems)
const propDimensions = propEntries.map((propEntry) =>
getPropDimension(propEntry, normalizedSystems),
addPropEntryDimensions(propEntry, normalizedSystems),
)
return propDimensions
}
Expand All @@ -52,7 +52,7 @@ const getUniquePropEntry = function (propName, systems) {
return propValues.map((propValue) => ({ propName, propValue }))
}

const getPropDimension = function ({ propName, propValue }, systems) {
const addPropEntryDimensions = function ({ propName, propValue }, systems) {
const allDimensions = systems
.filter(({ props }) => props[propName] === propValue)
.map(({ dimensions }) => dimensions)
Expand Down

0 comments on commit 3f8e2d7

Please sign in to comment.