Skip to content

Commit

Permalink
centering loading animation
Browse files Browse the repository at this point in the history
  • Loading branch information
sam9116 committed Dec 8, 2024
1 parent d7a4477 commit 936a9d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Odyssey/SharePage.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ const SharePage = ({ concerts, userLocation, mapStyle, setPosterName, posterName
return (
<Stack disablePadding spacing={3}>
{isLoaded ? <Map concerts={concerts} userLocation={userLocation} mapStyle={mapStyle} /> : null}
<Stack spacing={2} direction={'row'} sx={{ width: '100%' }}>
{isLoading ? <Stack direction={"column"} sx={{ flex: 1 }} > <CircularProgress size={24} /> </Stack> :
<Stack spacing={2} direction={'row'} sx={{ width: '100%' }} >
{isLoading ? <Stack direction={"column"} sx={{ flex: 1 }} alignItems="center"> <CircularProgress size={24} /> </Stack> :
<TextField
variant="standard"
placeholder="Write a cool name for your trip here"
Expand Down

0 comments on commit 936a9d2

Please sign in to comment.