Skip to content

Commit

Permalink
Merge pull request #9 from ananjaemin/8-filelist-loading-timeout-설정
Browse files Browse the repository at this point in the history
feat: Loading Timeout 추가(2ms)
  • Loading branch information
ananjaemin committed Oct 27, 2022
2 parents 3d75ac7 + 7b43f46 commit 26d7641
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/pages/filelist/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ export const FileListPage: React.FC = () => {
})
.then((res) => {
setFileList(res.data.list);
setLoading(true); //loading 확인하고싶으면 false로 바꿔주세요.
setTimeout(() => {
setLoading(true); //loading 확인하고싶으면 false로 바꿔주세요.
}, 2000);
})
.catch((err) => {
console.log(err);
Expand Down
2 changes: 1 addition & 1 deletion src/pages/filelist/styled.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export const FileListSkeletonUI = styled.div<{ randomWitdh: string }>`
content: ' ';
width: 100%;
height: auto;
animation: loading 2.5s infinite;
animation: loading 2s infinite;
box-shadow: 0 0 30px 30px rgba(255, 255, 255, 0.3);
}
@keyframes loading {
Expand Down

0 comments on commit 26d7641

Please sign in to comment.