mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
0a105a1c21
* [WEB-1325] chore: refactor inbox issue store to avoid data loss. * chore: inbox store improvement.
33 lines
927 B
TypeScript
33 lines
927 B
TypeScript
import { FC, Fragment } from "react";
|
|
import { observer } from "mobx-react";
|
|
// components
|
|
import { InboxIssueListItem } from "@/components/inbox";
|
|
|
|
export type InboxIssueListProps = {
|
|
workspaceSlug: string;
|
|
projectId: string;
|
|
projectIdentifier?: string;
|
|
inboxIssueIds: string[];
|
|
setIsMobileSidebar: (value: boolean) => void;
|
|
};
|
|
|
|
export const InboxIssueList: FC<InboxIssueListProps> = observer((props) => {
|
|
const { workspaceSlug, projectId, projectIdentifier, inboxIssueIds, setIsMobileSidebar } = props;
|
|
|
|
return (
|
|
<>
|
|
{inboxIssueIds.map((inboxIssueId) => (
|
|
<Fragment key={inboxIssueId}>
|
|
<InboxIssueListItem
|
|
setIsMobileSidebar={setIsMobileSidebar}
|
|
workspaceSlug={workspaceSlug}
|
|
projectId={projectId}
|
|
projectIdentifier={projectIdentifier}
|
|
inboxIssueId={inboxIssueId}
|
|
/>
|
|
</Fragment>
|
|
))}
|
|
</>
|
|
);
|
|
});
|