Skip to content

Commit

Permalink
Merge pull request #1412 from hackforla/1284-new-loading-modal-display
Browse files Browse the repository at this point in the history
1284 new loading modal display
  • Loading branch information
jekijo authored Nov 10, 2022
2 parents 1b61346 + c5d3526 commit 9e7dedc
Show file tree
Hide file tree
Showing 3 changed files with 1,009 additions and 569 deletions.
Binary file added client/assets/loading.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions client/components/Map/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import CookieNotice from '../main/CookieNotice';
// import "mapbox-gl/dist/mapbox-gl.css";
import Map from './Map';
import moment from 'moment';
import { CircularProgress } from '@material-ui/core';
import gif from '@assets/loading.gif'

// We make API requests on a per-day basis. On average, there are about 4k
// requests per day, so 10k is a large safety margin.
Expand Down Expand Up @@ -303,7 +303,7 @@ class MapContainer extends React.Component {
selectedTypes={selectedTypes}
/>
<CookieNotice />
{isMapLoading && <CircularProgress />}
{isMapLoading && <img style={{ width:window.innerWidth, height: 16, position:'absolute' }} src={gif}/>}
</div>
);
}
Expand Down
Loading

0 comments on commit 9e7dedc

Please sign in to comment.