Showing 4 of 10 total issues
File MapComponent.js
has 291 lines of code (exceeds 250 allowed). Consider refactoring. Confirmed
Confirmed
import React, { Component, useState } from "react";
import Button from "./Button";
import ImageUpload from "./ImageUpload";
import Description from "./Description";
import {
Function SocialLinks
has 69 lines of code (exceeds 25 allowed). Consider refactoring. Confirmed
Confirmed
const SocialLinks = marker => {
const [city, setCity] = useState(null);
const [quote, setQuote] = useState(null);
Geocode.fromLatLng(marker.lat, marker.lng).then(
response => {
Function render
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Confirmed
Confirmed
render() {
return (
<div id="map">
<MapComponent
lat={51.52713}
Function Button
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const Button = props => {
if (props.isSaveButton) {
color = "rgb(63, 130, 195)";
onClick = props.saveToDatabase;
margin = "0";