added useEffect and conditional logic to check window dimensions on load.
added useEffect and conditional logic to check window dimensions on load.

wri/gfw-mapbuilder,wri/gfw-mapbuilder,wri/gfw-mapbuilder