From 158f8ba27f354b53f4d25613d1ff1828cbad0bea Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sun, 5 Sep 2021 11:50:10 -0700 Subject: Fix lint issues --- modern/src/map/MapPadding.js | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'modern/src/map') diff --git a/modern/src/map/MapPadding.js b/modern/src/map/MapPadding.js index cb165797..dec41b49 100644 --- a/modern/src/map/MapPadding.js +++ b/modern/src/map/MapPadding.js @@ -2,10 +2,16 @@ import { useEffect } from 'react'; import { map } from './Map'; -const MapPadding = ({ top, right, bottom, left }) => { +const MapPadding = ({ + top, right, bottom, left, +}) => { useEffect(() => { - map.setPadding({ top, right, bottom, left }); - return () => map.setPadding({ top: 0, right: 0, bottom: 0, left: 0 }); + map.setPadding({ + top, right, bottom, left, + }); + return () => map.setPadding({ + top: 0, right: 0, bottom: 0, left: 0, + }); }, [top, right, bottom, left]); return null; -- cgit v1.2.3