diff options
| author | Yuval Adam <_@yuv.al> | 2019-10-16 21:51:56 +0300 |
|---|---|---|
| committer | Yuval Adam <_@yuv.al> | 2019-10-16 21:51:56 +0300 |
| commit | b056abbde2274661f15676ed07c29a13c620753c (patch) | |
| tree | de985d94fdc217bbf7a97dfa19e3939343ffc5a1 /src/Map.js | |
| parent | 41140dfd79ef51b24b5059e3904eff452bbe3739 (diff) | |
Add DateTime component and remove unused vars
Diffstat (limited to 'src/Map.js')
| -rw-r--r-- | src/Map.js | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,4 +1,4 @@ -import React, { Fragment, useState, useEffect } from "react"; +import React, { Fragment, useState } from "react"; import ReactMapboxGl, { Layer, Source } from "react-mapbox-gl"; import { MAPBOX_ACCESS_TOKEN, IMAGE_COORDINATES } from "./config"; @@ -13,8 +13,8 @@ const Mapbox = ReactMapboxGl({ }); function Map(props) { - const [center, setCenter] = useState([35, 31.9]); - const [zoom, setZoom] = useState([6.3]); + const [center] = useState([35, 31.9]); + const [zoom] = useState([6.3]); return ( <Mapbox |
