Skip to content

Commit

Permalink
modal only render on map page;
Browse files Browse the repository at this point in the history
  • Loading branch information
bphan002 committed May 30, 2024
1 parent c39a430 commit d8c5b65
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions components/Map/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -444,14 +444,18 @@ class MapContainer extends React.Component {
initialState={this.initialState}
/>
<CookieNotice />
{(isDbLoading || isMapLoading || isTableLoading) ? (
<>
<LoadingModal />
<FunFactCard />
</>
) : (acknowledgeModalShown === false) ? (
<AcknowledgeModal onClose={this.onClose}/>
) : null}
{
window.location.hash == '#/map' && (
(isDbLoading || isMapLoading || isTableLoading) ? (
<>
<LoadingModal />
<FunFactCard />
</>
) : (acknowledgeModalShown === false) ? (
<AcknowledgeModal onClose={this.onClose}/>
) : null
)
}
</div>
);
}
Expand Down

0 comments on commit d8c5b65

Please sign in to comment.