mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
6c6b764421
* chore: pages empty state improvement * chore: workspace all issues empty state improvement * chore: profile issue empty state improvement * chore: empty state sm size updated * chore: project view empty state image updated * chore: dashboard widgets permission uodated * chore: draft issues and project issue empty state image * chore: active cycle label updated
32 lines
877 B
TypeScript
32 lines
877 B
TypeScript
import { FC } from "react";
|
|
import { observer } from "mobx-react-lite";
|
|
// components
|
|
import { PagesListView } from "components/pages/pages-list";
|
|
// hooks
|
|
// ui
|
|
import { Loader, Spinner } from "@plane/ui";
|
|
import { useProjectPages } from "hooks/store/use-project-specific-pages";
|
|
|
|
export const ArchivedPagesList: FC = observer(() => {
|
|
const projectPageStore = useProjectPages();
|
|
const { archivedPageIds, archivedPageLoader } = projectPageStore;
|
|
|
|
if (archivedPageLoader) {
|
|
return (
|
|
<div className="flex items-center justify-center h-full w-full">
|
|
<Spinner />
|
|
</div>
|
|
);
|
|
}
|
|
if (!archivedPageIds)
|
|
return (
|
|
<Loader className="space-y-4">
|
|
<Loader.Item height="40px" />
|
|
<Loader.Item height="40px" />
|
|
<Loader.Item height="40px" />
|
|
</Loader>
|
|
);
|
|
|
|
return <PagesListView pageIds={archivedPageIds} />;
|
|
});
|