Skip to content

Commit

Permalink
Swap loading message for spinner
Browse files Browse the repository at this point in the history
  • Loading branch information
jake-low committed Sep 5, 2024
1 parent 3cd291b commit b51c5fa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 15 deletions.
11 changes: 0 additions & 11 deletions src/components/Widgets/TaskMapWidget/RapidEditor/Messages.js

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ import { DEFAULT_ZOOM } from '../../../../services/Challenge/ChallengeZoom/Chall
import WithSearch from '../../../HOCs/WithSearch/WithSearch.js';
import useHash from '../../../../hooks/UseHash.js';
import { SET_RAPIDEDITOR } from '../../../../services/RapidEditor/RapidEditor.js';
import { FormattedMessage } from 'react-intl';
import messages from './Messages.js';
import BusySpinner from '../../../BusySpinner/BusySpinner.js'

/**
* Generate the initial URL hash for the Rapid editor.
Expand Down Expand Up @@ -66,8 +65,8 @@ const RapidEditor = ({ token, task, mapBounds, comment }) => {
return (

Check warning on line 65 in src/components/Widgets/TaskMapWidget/RapidEditor/RapidEditor.js

View check run for this annotation

Codecov / codecov/patch

src/components/Widgets/TaskMapWidget/RapidEditor/RapidEditor.js#L65

Added line #L65 was not covered by tests
<div style={{ position: 'relative', width: '100%', height: '100%' }}>
{isLoading && (
<div style={{ position: 'absolute', top: 0, left: 0, width: '100%', height: '100%', display: 'flex', justifyContent: 'center', alignItems: 'center', backgroundColor: 'rgba(255, 255, 255, 0.8)', zIndex: 1000 }}>
<FormattedMessage {...messages.loadingRapid} />
<div style={{ position: 'absolute', top: 0, left: 0, width: '100%', height: '100%', display: 'flex', justifyContent: 'center', alignItems: 'center', zIndex: 1000 }}>

Check warning on line 68 in src/components/Widgets/TaskMapWidget/RapidEditor/RapidEditor.js

View check run for this annotation

Codecov / codecov/patch

src/components/Widgets/TaskMapWidget/RapidEditor/RapidEditor.js#L67-L68

Added lines #L67 - L68 were not covered by tests
<BusySpinner xlarge />
</div>
)}
<iframe
Expand Down

0 comments on commit b51c5fa

Please sign in to comment.