client/src/common/map.tsx
Function useMap
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const useMap = (): Handler => {
const [{ min_scale, max_scale }] = useContext(ConfigContext);
const [coordX, coordY, coordS] = useContext(CoordContext);
const delegate = useContext(DelegateContext);