Skip to content

Commit

Permalink
feat: adding loading spinner for utilities fetches
Browse files Browse the repository at this point in the history
  • Loading branch information
katiestahl committed Nov 20, 2023
1 parent a3f2cf2 commit 197a9ba
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import TabPaper from "../../main/shared/TabPaper/TabPaper";
import { HelpPopover } from "../../main/shared/HelpPopover/HelpPopover";
import ChromosomeField from "../../main/shared/ChromosomeField/ChromosomeField";
import TranscriptField from "../../main/shared/TranscriptField/TranscriptField";
import LoadingMessage from "../../main/shared/LoadingMessage/LoadingMessage";

const GetCoordinates: React.FC = () => {
const useStyles = makeStyles(() => ({
Expand Down Expand Up @@ -219,10 +220,7 @@ const GetCoordinates: React.FC = () => {
const renderResults = (): React.ReactFragment => {
if (isLoading) {
return (
<Box alignContent="center" alignItems="center" justifyContent="center" display="flex" flexDirection="column">
<Box mb={2}>Retrieving results...</Box>
<CircularProgress />
</Box>
<LoadingMessage message="Fetching coordinates..." />
)
}
if (inputValid) {
Expand Down

0 comments on commit 197a9ba

Please sign in to comment.