unicef/magicbox-maps-prototype

View on GitHub
src/components/control-panel.jsx

Summary

Maintainability
A
2 hrs
Test Coverage

Showing 2 of 2 total issues

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

<a onClick={(e) => {
this.ControlPanel.classList.remove('controlPanel--hide')
}} className="controlPanel__header__toggleButton controlPanel__header__toggleButton--closed">
<i className="fas fa-bars" />
</a>
Severity: Major
Found in src/components/control-panel.jsx and 1 other location - About 1 hr to fix
src/components/control-panel.jsx on lines 19..23

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

<a onClick={(e) => {
this.ControlPanel.classList.add('controlPanel--hide')
}} className="controlPanel__header__toggleButton">
<i className="fas fa-bars" />
</a>
Severity: Major
Found in src/components/control-panel.jsx and 1 other location - About 1 hr to fix
src/components/control-panel.jsx on lines 11..15

There are no issues that match your filters.

Category
Status