mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
548e95c7e0
* fix: module sidebar fix for kanban layout * chore: cycle & module sidebar improvement * chore: join project content updated * chore: project empty state header fix * chore: create project modal dropdown consistency * chore: list view group header overlapping issue fix * chore: popover code refactor * chore: module sidebar fix for cycle kanban view * chore: add existing issue option added in module empty state * chore: add existing issue option added in cycle empty state
39 lines
1.2 KiB
TypeScript
39 lines
1.2 KiB
TypeScript
import { PlusIcon } from "lucide-react";
|
|
// components
|
|
import { EmptyState } from "components/common";
|
|
// assets
|
|
import emptyIssue from "public/empty-state/issue.svg";
|
|
import { Button } from "@plane/ui";
|
|
|
|
type Props = {
|
|
openIssuesListModal: () => void;
|
|
};
|
|
|
|
export const CycleEmptyState: React.FC<Props> = ({ openIssuesListModal }) => (
|
|
<div className="h-full w-full grid place-items-center">
|
|
<EmptyState
|
|
title="Cycle issues will appear here"
|
|
description="Issues help you track individual pieces of work. With Issues, keep track of what's going on, who is working on it, and what's done."
|
|
image={emptyIssue}
|
|
primaryButton={{
|
|
text: "New issue",
|
|
icon: <PlusIcon className="h-3 w-3" strokeWidth={2} />,
|
|
onClick: () => {
|
|
const e = new KeyboardEvent("keydown", {
|
|
key: "c",
|
|
});
|
|
document.dispatchEvent(e);
|
|
},
|
|
}}
|
|
secondaryButton={
|
|
<Button
|
|
variant="neutral-primary"
|
|
prependIcon={<PlusIcon className="h-3 w-3" strokeWidth={2} onClick={openIssuesListModal} />}
|
|
>
|
|
Add an existing issue
|
|
</Button>
|
|
}
|
|
/>
|
|
</div>
|
|
);
|