Skip to content

Commit 76db8a8

Browse files
committed
Using spin of antd for Loading
1 parent 6deb0ae commit 76db8a8

File tree

2 files changed

+8
-18
lines changed

2 files changed

+8
-18
lines changed

src/components/Loading/Loading.styles.ts

Lines changed: 0 additions & 15 deletions
This file was deleted.

src/components/Loading/index.tsx

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
11
import React from 'react';
2-
import { Spinner } from './Loading.styles';
2+
import { Spin } from 'antd';
3+
import { LoadingOutlined } from '@ant-design/icons';
4+
5+
const antIcon = <LoadingOutlined style={{ fontSize: 24 }} spin />;
36

47
export const Loading = () => {
58
return (
6-
<div>
7-
<Spinner />
9+
<div className="container">
10+
<div style={{ margin: 'auto', textAlign: 'center' }}>
11+
<Spin indicator={antIcon} />
12+
</div>
813
</div>
914
);
1015
};

0 commit comments

Comments
 (0)