2023-09-26 14:26:59 +00:00
|
|
|
// layouts
|
|
|
|
import { WorkspaceAuthorizationLayout } from "layouts/auth-layout";
|
|
|
|
// components
|
|
|
|
import { WorkspaceIssuesViewOptions } from "components/issues/workspace-views/workspace-issue-view-option";
|
2023-09-28 15:04:57 +00:00
|
|
|
import { WorkspaceCreatedIssues } from "components/issues/workspace-views/workspace-created-issues";
|
2023-09-26 14:26:59 +00:00
|
|
|
// ui
|
2023-09-28 15:04:57 +00:00
|
|
|
import { PrimaryButton } from "components/ui";
|
2023-09-26 14:26:59 +00:00
|
|
|
// icons
|
|
|
|
import { PlusIcon } from "@heroicons/react/24/outline";
|
|
|
|
import { CheckCircle } from "lucide-react";
|
|
|
|
|
2023-09-28 15:04:57 +00:00
|
|
|
const WorkspaceViewCreatedIssue: React.FC = () => (
|
|
|
|
<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>
|
2023-09-26 14:26:59 +00:00
|
|
|
</div>
|
2023-09-28 15:04:57 +00:00
|
|
|
}
|
|
|
|
>
|
|
|
|
<WorkspaceCreatedIssues />
|
|
|
|
</WorkspaceAuthorizationLayout>
|
|
|
|
);
|
2023-09-26 14:26:59 +00:00
|
|
|
|
|
|
|
export default WorkspaceViewCreatedIssue;
|