mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
2a770e4a95
* chore: workspace view mutation fix ,bug fixes and code refactor * chore: update workspace view toast alert added
41 lines
1.2 KiB
TypeScript
41 lines
1.2 KiB
TypeScript
// layouts
|
|
import { WorkspaceAuthorizationLayout } from "layouts/auth-layout";
|
|
import { PrimaryButton } from "components/ui";
|
|
// component
|
|
import { WorkspaceIssuesViewOptions } from "components/issues/workspace-views/workspace-issue-view-option";
|
|
import { WorkspaceAllIssue } from "components/issues/workspace-views/workspace-all-issue";
|
|
// icons
|
|
import { PlusIcon } from "@heroicons/react/24/outline";
|
|
import { CheckCircle } from "lucide-react";
|
|
|
|
const WorkspaceViewAllIssue = () => (
|
|
<WorkspaceAuthorizationLayout
|
|
breadcrumbs={
|
|
<div className="flex gap-2 items-center">
|
|
<CheckCircle className="h-[18px] w-[18px] stroke-[1.5]" />
|
|
<span className="text-sm font-medium">Workspace issues</span>
|
|
</div>
|
|
}
|
|
right={
|
|
<div className="flex items-center gap-2">
|
|
<WorkspaceIssuesViewOptions />
|
|
|
|
<PrimaryButton
|
|
className="flex items-center gap-2"
|
|
onClick={() => {
|
|
const e = new KeyboardEvent("keydown", { key: "c" });
|
|
document.dispatchEvent(e);
|
|
}}
|
|
>
|
|
<PlusIcon className="h-4 w-4" />
|
|
Add Issue
|
|
</PrimaryButton>
|
|
</div>
|
|
}
|
|
>
|
|
<WorkspaceAllIssue />
|
|
</WorkspaceAuthorizationLayout>
|
|
);
|
|
|
|
export default WorkspaceViewAllIssue;
|