spherehq/sphere

View on GitHub
packages/geometry/Components/Grid/Grid.tsx

Summary

Maintainability
A
3 hrs
Test Coverage

Showing 2 of 2 total issues

Similar blocks of code found in 2 locations. Consider refactoring.
Open

const getRowGap = ({ gap, rowGap }) => {
let v = rowGap || gap || 0
if (v && typeof v === 'boolean') {
v = defaultGap
}
Severity: Major
Found in packages/geometry/Components/Grid/Grid.tsx and 1 other location - About 1 hr to fix
packages/geometry/Components/Grid/Grid.tsx on lines 16..22

Similar blocks of code found in 2 locations. Consider refactoring.
Open

const getColGap = ({ gap, colGap }) => {
let v = colGap || gap || 0
if (v && typeof v === 'boolean') {
v = defaultGap
}
Severity: Major
Found in packages/geometry/Components/Grid/Grid.tsx and 1 other location - About 1 hr to fix
packages/geometry/Components/Grid/Grid.tsx on lines 24..30
Category
Status