-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
홈 스켈레톤 재생성, 카카오맵 로딩 상태 관리
- Loading branch information
Showing
11 changed files
with
84 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import { ClipLoader } from 'react-spinners'; | ||
import { LoaderProps } from '../mapType'; | ||
|
||
const Loader = (props: LoaderProps) => { | ||
const { loading, longLoading, loadingButApiIsOkay } = props; | ||
|
||
return ( | ||
<> | ||
{loadingButApiIsOkay || | ||
(loading && ( | ||
<div className="w-screen h-screen flex flex-col items-center gap-8 justify-center"> | ||
<h1 className="font-bold">{loading} 중 입니다...</h1> | ||
{loadingButApiIsOkay && <span>서버가 느려요... 기다려주세요!</span>} | ||
{longLoading && ( | ||
<> | ||
<span>로딩이 너무 오래 걸리시나요?</span> | ||
<button | ||
type="button" | ||
onClick={() => { | ||
window.location.reload(); | ||
}} | ||
className="bg-brand-color text-white rounded-md px-4 py-2" | ||
> | ||
새로고침 | ||
</button> | ||
</> | ||
)} | ||
<ClipLoader color="black" loading={true} size={50} /> | ||
</div> | ||
))} | ||
</> | ||
); | ||
}; | ||
|
||
export default Loader; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters