Skip to content

Commit

Permalink
[FE][Feat] #274 : 지도 가져올 때 로딩 화면 추가 (로딩 스피너로 대체)
Browse files Browse the repository at this point in the history
- 지도 가져올 때 로딩 화면 추가 (로딩 스피너로 대체)
- 홈 화면에서 지도 로딩 화면 적용
  • Loading branch information
happyhyep committed Nov 26, 2024
1 parent 8db2c6c commit 22a109d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
export const LoadingSpinner = () => {
return <div className="spinner" />;
return (
<section className="flex h-full flex-col items-center justify-center gap-2 text-xl text-gray-700">
<div className="spinner" />
Loading map data...
</section>
);
};
5 changes: 1 addition & 4 deletions frontend/src/pages/Main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,7 @@ export const Main = () => {
otherLocations={otherLocations}
/>
) : (
<section className="flex h-full flex-col items-center justify-center gap-2 text-xl text-gray-700">
<LoadingSpinner />
Loading map data...
</section>
<LoadingSpinner />
)
) : (
<section className="flex h-full flex-col items-center justify-center gap-2 text-xl text-gray-700">
Expand Down

0 comments on commit 22a109d

Please sign in to comment.