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
37 lines
786 B
TypeScript
37 lines
786 B
TypeScript
import * as React from "react";
|
|
|
|
// icons
|
|
import {
|
|
AlertCircle,
|
|
Ban,
|
|
SignalHigh,
|
|
SignalLow,
|
|
SignalMedium,
|
|
} from "lucide-react";
|
|
|
|
// types
|
|
import { IPriorityIcon } from "./type";
|
|
|
|
export const PriorityIcon: React.FC<IPriorityIcon> = ({
|
|
priority,
|
|
className = "",
|
|
}) => {
|
|
if (!className || className === "") className = "h-3.5 w-3.5";
|
|
|
|
return (
|
|
<>
|
|
{priority === "urgent" ? (
|
|
<AlertCircle className={`${className}`} />
|
|
) : priority === "high" ? (
|
|
<SignalHigh className={`${className}`} />
|
|
) : priority === "medium" ? (
|
|
<SignalMedium className={`${className}`} />
|
|
) : priority === "low" ? (
|
|
<SignalLow className={`${className}`} />
|
|
) : (
|
|
<Ban className={`${className}`} />
|
|
)}
|
|
</>
|
|
);
|
|
};
|