mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
3d09a69d58
* fix: eslint fixes --------- Co-authored-by: gurusainath <gurusainath007@gmail.com>
25 lines
713 B
TypeScript
25 lines
713 B
TypeScript
import { FC } from "react";
|
|
import { observer } from "mobx-react-lite";
|
|
// components
|
|
import { Loader } from "@plane/ui";
|
|
import { PagesListView } from "components/pages/pages-list";
|
|
// hooks
|
|
// ui
|
|
import { useProjectPages } from "hooks/store/use-project-specific-pages";
|
|
|
|
export const FavoritePagesList: FC = observer(() => {
|
|
const projectPageStore = useProjectPages();
|
|
const { favoriteProjectPageIds } = projectPageStore;
|
|
|
|
if (!favoriteProjectPageIds)
|
|
return (
|
|
<Loader className="space-y-4">
|
|
<Loader.Item height="40px" />
|
|
<Loader.Item height="40px" />
|
|
<Loader.Item height="40px" />
|
|
</Loader>
|
|
);
|
|
|
|
return <PagesListView pageIds={favoriteProjectPageIds} />;
|
|
});
|