mirror of
https://github.com/hex248/sprint.git
synced 2026-02-08 18:33:01 +00:00
frontend indentation set to 2
This commit is contained in:
@@ -2,24 +2,24 @@ import { DEFAULT_SPRINT_COLOUR, type SprintRecord } from "@sprint/shared";
|
||||
import { cn, DARK_TEXT_COLOUR, isLight } from "@/lib/utils";
|
||||
|
||||
export default function SmallSprintDisplay({
|
||||
sprint,
|
||||
className,
|
||||
sprint,
|
||||
className,
|
||||
}: {
|
||||
sprint?: SprintRecord;
|
||||
className?: string;
|
||||
sprint?: SprintRecord;
|
||||
className?: string;
|
||||
}) {
|
||||
const colour = sprint?.color || DEFAULT_SPRINT_COLOUR;
|
||||
const textColour = isLight(colour) ? DARK_TEXT_COLOUR : "var(--foreground)";
|
||||
const colour = sprint?.color || DEFAULT_SPRINT_COLOUR;
|
||||
const textColour = isLight(colour) ? DARK_TEXT_COLOUR : "var(--foreground)";
|
||||
|
||||
return (
|
||||
<div
|
||||
className={cn(
|
||||
"text-xs px-1.5 rounded-full inline-flex whitespace-nowrap border border-foreground/10",
|
||||
className,
|
||||
)}
|
||||
style={{ backgroundColor: colour, color: textColour }}
|
||||
>
|
||||
{sprint?.name || "None"}
|
||||
</div>
|
||||
);
|
||||
return (
|
||||
<div
|
||||
className={cn(
|
||||
"text-xs px-1.5 rounded-full inline-flex whitespace-nowrap border border-foreground/10",
|
||||
className,
|
||||
)}
|
||||
style={{ backgroundColor: colour, color: textColour }}
|
||||
>
|
||||
{sprint?.name || "None"}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user