change design and data list in doctor-item & handle component appointment in doctor-item & handle functionality date-picker & fix bug appointment page & add req get appointment list
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
import { CircularProgress } from "@mui/material";
|
||||
import React from "react";
|
||||
|
||||
function LoadingComponent({ children, loading }) {
|
||||
return (
|
||||
<div className="relative">
|
||||
{loading ? (
|
||||
<div className="absolute min-h-[80px] mt-[160px] w-full h-full flex items-center justify-center">
|
||||
<CircularProgress />
|
||||
</div>
|
||||
) : (
|
||||
children
|
||||
)}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
export default LoadingComponent;
|
||||
Reference in New Issue
Block a user