Skip to content

Commit

Permalink
better loading for load more button
Browse files Browse the repository at this point in the history
  • Loading branch information
No0ne003 committed May 4, 2024
1 parent 393a85c commit 10118ea
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/pages/LoadMoreData.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,11 @@ function LoadMoreData() {
}, [products]);

if (loading) {
return <div>Loading data ! Please wait man</div>;
return (
<div className="absolute inset-0 m-auto flex justify-center items-center">
<div className="loader "></div>
</div>
);
}
console.log(products);

Expand Down

0 comments on commit 10118ea

Please sign in to comment.