Last active
January 11, 2023 11:31
-
-
Save jahidulsaeid/94b5147200bdf48cbff5d0a5498626ec to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { DotChartOutlined } from '@ant-design/icons' | |
import { Skeleton, Space } from 'antd' | |
import React from 'react' | |
const SidebarLoading = ({ isLoading }) => { | |
return ( | |
<> | |
<div className='sidebar_skeleton'> | |
<Space style={{ marginBottom: "20px" }}> | |
<Skeleton active={isLoading} size="small" round paragraph={false} /> | |
<Skeleton.Node active={isLoading}> | |
<DotChartOutlined | |
style={{ | |
fontSize: 40, | |
color: '#bfbfbf', | |
}} | |
shape="circle" | |
/> | |
</Skeleton.Node> | |
</Space> | |
{[...Array(15)].map((_, i) => <Skeleton key={++i} active={isLoading} size="small" round paragraph={false} block />)} | |
</div> | |
</> | |
) | |
} | |
export default SidebarLoading |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment