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