Skip to content

Instantly share code, notes, and snippets.

@jahidulsaeid
Last active January 11, 2023 11:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jahidulsaeid/94b5147200bdf48cbff5d0a5498626ec to your computer and use it in GitHub Desktop.
Save jahidulsaeid/94b5147200bdf48cbff5d0a5498626ec to your computer and use it in GitHub Desktop.
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