fix: simplify Loading component structure

This commit is contained in:
Alvalens 2025-03-18 12:36:50 +07:00
parent 238e0e28e8
commit f1edb19b5a
3 changed files with 9 additions and 21 deletions

View file

@ -1,11 +1,7 @@
export default function Loading() { export default function Loading() {
return ( return (
<>
(
<div className="fixed top-0 left-0 flex justify-center items-center h-screen w-screen bg-gray-300 z-[999]"> <div className="fixed top-0 left-0 flex justify-center items-center h-screen w-screen bg-gray-300 z-[999]">
<h1 className="text-4xl text-gray-900">Loading...</h1> <h1 className="text-4xl text-gray-900">Loading...</h1>
</div> </div>
)
</>
); );
} }

View file

@ -1,11 +1,7 @@
export default function Loading() { export default function Loading() {
return ( return (
<>
(
<div className="fixed top-0 left-0 flex justify-center items-center h-screen w-screen bg-gray-300 z-[999]"> <div className="fixed top-0 left-0 flex justify-center items-center h-screen w-screen bg-gray-300 z-[999]">
<h1 className="text-4xl text-gray-900">Loading...</h1> <h1 className="text-4xl text-gray-900">Loading...</h1>
</div> </div>
)
</>
); );
} }

View file

@ -1,11 +1,7 @@
export default function Loading() { export default function Loading() {
return ( return (
<>
(
<div className="fixed top-0 left-0 flex justify-center items-center h-screen w-screen bg-gray-300 z-[999]"> <div className="fixed top-0 left-0 flex justify-center items-center h-screen w-screen bg-gray-300 z-[999]">
<h1 className="text-4xl text-gray-900">Loading...</h1> <h1 className="text-4xl text-gray-900">Loading...</h1>
</div> </div>
)
</>
); );
} }