Code styling
Added brackets for const lambdas Converted const lambdas with multiple instructions to functions
This commit is contained in:
@ -10,7 +10,7 @@ type LocationMarkerProps = {
|
||||
setPosition: SetState<LatLng>
|
||||
}
|
||||
|
||||
const LocationMarker = ({ address, position, setPosition }: LocationMarkerProps) => {
|
||||
function LocationMarker({ address, position, setPosition }: LocationMarkerProps) {
|
||||
|
||||
const map = useMapEvents({
|
||||
dragend: () => {
|
||||
|
Reference in New Issue
Block a user