Skip to content

Commit

Permalink
Merge pull request #149 from prgrms-fe-devcourse/148-feature/page-loader
Browse files Browse the repository at this point in the history
Loader가 페이지 전체 차지하도록 수정
  • Loading branch information
shlee9999 authored Oct 4, 2024
2 parents 6fd15e3 + e2abaed commit 6a8d43b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/components/Loader/index.tsx
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>
);
};
9 changes: 9 additions & 0 deletions src/components/Loader/styles.ts
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;
`;

0 comments on commit 6a8d43b

Please sign in to comment.