update loader styling

This commit is contained in:
jeffvli
2021-08-08 19:34:57 -07:00
parent 54f30cb8b0
commit 459cd908b3
2 changed files with 9 additions and 7 deletions

View File

@@ -1,12 +1,17 @@
import React from 'react';
import { Loader as RsLoader } from 'rsuite';
import '../../styles/Loader.global.css';
import styled from 'styled-components';
const LoaderContainer = styled.div`
text-align: center;
margin-top: 75px;
`;
const Loader = ({ text }: any) => {
return (
<div className="loader__main">
<RsLoader size="md" vertical content={text} />
</div>
<LoaderContainer>
<RsLoader size="md" vertical content={text} speed="slow" />
</LoaderContainer>
);
};

View File

@@ -1,3 +0,0 @@
.loader__main {
text-align: center;
}