mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
651b252c23
* chore: svg icons added in plane/ui package * chore: swap priority and state icon with plane/ui icons * chore: replace core folder icons with lucide and plane ui icons * style: priority icon size * chore: replace icons with lucide and plane/ui icons * chore: replace cycle folder icons with lucide and plane/ui icons * chore: replace existing icons with lucide and plane/ui icons * chore: replace existing icons with lucide and plane/ui icons * chore: replace existing icons with lucide and plane/ui icons * chore: replace existing icons with lucide and plane/ui icons * chore: replace existing icons with lucide and plane/ui icons * fix: build error * fix: build error * fix: build error
32 lines
827 B
TypeScript
32 lines
827 B
TypeScript
import { useState } from "react";
|
|
|
|
// components
|
|
import { CreateUpdateProjectViewModal } from "components/views";
|
|
// ui
|
|
import { PrimaryButton } from "components/ui";
|
|
// icons
|
|
import { Plus } from "lucide-react";
|
|
|
|
export const ProjectViewsHeader = () => {
|
|
const [createViewModal, setCreateViewModal] = useState(false);
|
|
|
|
return (
|
|
<>
|
|
<CreateUpdateProjectViewModal isOpen={createViewModal} onClose={() => setCreateViewModal(false)} />
|
|
<div>
|
|
<PrimaryButton
|
|
type="button"
|
|
className="flex items-center gap-2"
|
|
onClick={() => {
|
|
const e = new KeyboardEvent("keydown", { key: "v" });
|
|
document.dispatchEvent(e);
|
|
}}
|
|
>
|
|
<Plus size={14} strokeWidth={2} />
|
|
Create View
|
|
</PrimaryButton>
|
|
</div>
|
|
</>
|
|
);
|
|
};
|