handling loading
This commit is contained in:
parent
401b3e850f
commit
60bfd2617f
|
|
@ -3,7 +3,8 @@ import { useWordpressCustomData } from "../services/WordpressFetchData";
|
|||
|
||||
import Nav from "../components/ui/Nav";
|
||||
import AnimatedPage from "../components/AnimatedPage";
|
||||
import Loading from "../components/animations/Loading";
|
||||
import Loading from "../components/animations/Loading.jsx";
|
||||
|
||||
import Marquee from "../components/ui/Marquee";
|
||||
import Footer from "../components/ui/Footer";
|
||||
|
||||
|
|
@ -11,7 +12,16 @@ import personnages from "../assets/img/illustrations/lhoist-personnages-a-propos
|
|||
|
||||
export default function About() {
|
||||
const pageDatas = useWordpressCustomData(`/page/145`);
|
||||
if (!pageDatas) return <Loading />;
|
||||
if (!pageDatas)
|
||||
return (
|
||||
<AnimatedPage className='page-container page-container--about '>
|
||||
<div className='content-page '>
|
||||
<Nav />
|
||||
|
||||
<Loading />
|
||||
</div>
|
||||
</AnimatedPage>
|
||||
);
|
||||
return (
|
||||
<AnimatedPage className='page-container page-container--about '>
|
||||
<div className='content-page '>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user