Skip to content

Commit 8e8411a

Browse files
committed
add container to loader
1 parent 2270ac8 commit 8e8411a

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

code/src/components/Loader.js

+9-1
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,18 @@ import styled from 'styled-components'
33

44
const Loader = () => {
55
return (
6-
<Loading></Loading>
6+
<LoaderContainer>
7+
<Loading></Loading>
8+
</LoaderContainer>
79
)
810
}
911

12+
const LoaderContainer = styled.div`
13+
display: flex;
14+
justify-content: center;
15+
align-content: center;
16+
`;
17+
1018
const Loading = styled.div`
1119
width:60px;
1220
height:60px;

0 commit comments

Comments
 (0)