Skip to content

Commit

Permalink
moved function PriorityComplexityDesc outside component PriorityCompl…
Browse files Browse the repository at this point in the history
…exityDisplay
  • Loading branch information
bonz88 committed Mar 16, 2024
1 parent e766038 commit 779fbea
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/app/components/PriorityComplexityDisplay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,16 @@ type PriorityComplexityDisplayProps = {
complexity?: number;
};

const priorityComplexityDesc = (desc: number) => {
if (desc < 4) return "Low";
if (desc < 7) return "Medium";
return "High";
};

export default function PriorityComplexityDisplay({
priority,
complexity,
}: PriorityComplexityDisplayProps) {
const priorityComplexityDesc = (desc: number) => {
if (desc < 4) return "Low";
if (desc < 7) return "Medium";
return "High";
};
return (
<div className="flex gap-2">
{priority ? <PriorityIcon /> : <ComplexityIcon />}
Expand Down

0 comments on commit 779fbea

Please sign in to comment.