Skip to content

Commit e87efcd

Browse files
committed
Update loader styles in error container
1 parent 574176b commit e87efcd

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

src/app/__tests__/Loader.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import Loader from '../components/Loader';
66
describe('unit testing for Loader.tsx', () => {
77
test('renders a loading icon', () => {
88
const { container } = render(<Loader loading={true} result={false} />);
9-
expect(container.firstChild).toHaveClass('css-xp4o0b');
9+
expect(container.firstChild).toHaveClass('css-1tm071a');
1010
});
1111

1212
test('renders a fail icon', () => {

src/app/components/Loader.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const handleResult = (result: boolean): JSX.Element =>
1717
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
1818
const Loader = ({ loading, result }): JSX.Element =>
1919
loading ? (
20-
<ClipLoader color='#123abc' size={30} loading={loading} style={{ display: "inline", margin: "0 auto" }}/>
20+
<ClipLoader color='#123abc' size={30} loading={loading} />
2121
) : (
2222
handleResult(result)
2323
);

src/app/styles/layout/_errorContainer.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@
4040
justify-content: center;
4141
align-items: center;
4242
}
43+
.loaderChecks span {
44+
margin: 0 auto;
45+
display: inline;
46+
}
4347
h2 {
4448
padding-left: 2%;
4549
padding-right: 2%;

0 commit comments

Comments
 (0)