added spinner in service profile page
This commit is contained in:
parent
25003d912e
commit
c718269dfd
@ -4,14 +4,13 @@ import { useServiceProject } from "../../hooks/useServiceProject";
|
||||
import { formatUTCToLocalTime } from "../../utils/dateUtils";
|
||||
import ManageServiceProject from "./ManageServiceProject";
|
||||
import GlobalModel from "../common/GlobalModel";
|
||||
import { SpinnerLoader } from "../common/Loader";
|
||||
|
||||
const ServiceProjectProfile = () => {
|
||||
const { projectId } = useParams();
|
||||
const [IsOpenModal, setIsOpenModal] = useState(false);
|
||||
const { data, isLoading, isError, error } = useServiceProject(projectId);
|
||||
if (isLoading) {
|
||||
return <div className="">Loadng.</div>;
|
||||
}
|
||||
if (isLoading) return <div className="py-8"><SpinnerLoader/></div>
|
||||
return (
|
||||
<>
|
||||
{IsOpenModal && (
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user