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 { formatUTCToLocalTime } from "../../utils/dateUtils";
|
||||||
import ManageServiceProject from "./ManageServiceProject";
|
import ManageServiceProject from "./ManageServiceProject";
|
||||||
import GlobalModel from "../common/GlobalModel";
|
import GlobalModel from "../common/GlobalModel";
|
||||||
|
import { SpinnerLoader } from "../common/Loader";
|
||||||
|
|
||||||
const ServiceProjectProfile = () => {
|
const ServiceProjectProfile = () => {
|
||||||
const { projectId } = useParams();
|
const { projectId } = useParams();
|
||||||
const [IsOpenModal, setIsOpenModal] = useState(false);
|
const [IsOpenModal, setIsOpenModal] = useState(false);
|
||||||
const { data, isLoading, isError, error } = useServiceProject(projectId);
|
const { data, isLoading, isError, error } = useServiceProject(projectId);
|
||||||
if (isLoading) {
|
if (isLoading) return <div className="py-8"><SpinnerLoader/></div>
|
||||||
return <div className="">Loadng.</div>;
|
|
||||||
}
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
{IsOpenModal && (
|
{IsOpenModal && (
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user