add loading all page & change bugs
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
import { Skeleton } from "@mui/material"
|
||||
|
||||
function CustomLoading({ width, height, children, loading }) {
|
||||
return loading ? (
|
||||
<Skeleton
|
||||
className={width === 'full' ? '!w-full' : ''}
|
||||
height={height}
|
||||
variant="rounded"
|
||||
width={width}
|
||||
/>
|
||||
) : children
|
||||
}
|
||||
|
||||
export default CustomLoading
|
||||
Reference in New Issue
Block a user