-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #149 from prgrms-fe-devcourse/148-feature/page-loader
Loader가 페이지 전체 차지하도록 수정
- Loading branch information
Showing
2 changed files
with
15 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,11 @@ | ||
import * as S from './styles'; | ||
import theme from '@/styles/theme'; | ||
import { FidgetSpinnerProps, ThreeDots } from 'react-loader-spinner'; | ||
|
||
export const Loader = ({ ...rest }: FidgetSpinnerProps) => { | ||
return <ThreeDots color={theme.colors.primary} {...rest} />; | ||
return ( | ||
<S.LoaderWrapper> | ||
<ThreeDots color={theme.colors.primary} {...rest} /> | ||
</S.LoaderWrapper> | ||
); | ||
}; |
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,9 @@ | ||
import { styled } from 'styled-components'; | ||
|
||
export const LoaderWrapper = styled.div` | ||
height: calc(100vh - 63px); | ||
position: relative; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
`; |