chore: inbox loader improvement (#3739)

This commit is contained in:
Anmol Singh Bhatia 2024-02-22 14:47:12 +05:30 committed by GitHub
parent acf81f30f5
commit d73cd2ec9d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,19 +1,26 @@
import React from "react"; import React from "react";
// ui // ui
import { InboxSidebarLoader } from "./inbox-sidebar-loader"; import { InboxSidebarLoader } from "./inbox-sidebar-loader";
import { Loader } from "@plane/ui";
export const InboxLayoutLoader = () => ( export const InboxLayoutLoader = () => (
<div className="relative flex h-full overflow-hidden"> <div className="relative flex h-full overflow-hidden">
<InboxSidebarLoader /> <InboxSidebarLoader />
<div className="w-full"> <div className="w-full">
<div className="grid h-full place-items-center p-4 text-custom-text-200"> <Loader className="flex h-full gap-5 p-5">
<div className="grid h-full place-items-center"> <div className="basis-2/3 space-y-2">
<div className="my-5 flex flex-col items-center gap-4"> <Loader.Item height="30px" width="40%" />
<span className="h-[60px] w-[60px] bg-custom-background-80 rounded" /> <Loader.Item height="15px" width="60%" />
<span className="h-6 w-96 bg-custom-background-80 rounded" /> <Loader.Item height="15px" width="60%" />
</div> <Loader.Item height="15px" width="40%" />
</div> </div>
<div className="basis-1/3 space-y-3">
<Loader.Item height="30px" />
<Loader.Item height="30px" />
<Loader.Item height="30px" />
<Loader.Item height="30px" />
</div> </div>
</Loader>
</div> </div>
</div> </div>
); );