Skip to content

Commit

Permalink
fix: loader
Browse files Browse the repository at this point in the history
  • Loading branch information
K4ST0R committed Sep 9, 2024
1 parent 6a5f80b commit 44f394e
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion ui/app/(accompagnateur)/recherche/ResearchFormationsResult.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,19 @@ export default function ResearchFormationsResult({
const formationsRef = useMemo(() => formations.map((data) => React.createRef<HTMLDivElement>()), [formations]);

if (isLoading) {
return <Loader withMargin />;
return (
<Box
display="flex"
alignItems="center"
flexDirection={"column"}
sx={{ height: "100vh", padding: { md: "2rem", xs: "1rem" }, paddingTop: { md: "5rem", xs: "5rem" } }}
>
<Loader withMargin />
<Typography variant="h6" textAlign={"center"}>
Nous recherchons toutes les formations autour de toi...
</Typography>
</Box>
);
}

return (
Expand Down

0 comments on commit 44f394e

Please sign in to comment.