mirror of
https://github.com/hex248/sprint.git
synced 2026-02-08 02:33:01 +00:00
customise organisation issue types
This commit is contained in:
@@ -181,17 +181,20 @@ export default function Icon({
|
||||
return null;
|
||||
}
|
||||
|
||||
let fill = "transparent";
|
||||
// lucide fills sillily
|
||||
if (color && resolvedStyle !== "lucide") {
|
||||
fill = color;
|
||||
} else if (resolvedStyle === "pixel" && ["bug", "moon", "hash"].includes(icon)) {
|
||||
fill = "var(--foreground)";
|
||||
} else if (resolvedStyle === "phosphor") {
|
||||
fill = "var(--foreground)";
|
||||
}
|
||||
|
||||
return (
|
||||
<IconComponent
|
||||
size={size}
|
||||
fill={
|
||||
color
|
||||
? color
|
||||
: (resolvedStyle === "pixel" && ["bug", "moon", "hash"].includes(icon)) ||
|
||||
resolvedStyle === "phosphor"
|
||||
? "var(--foreground)"
|
||||
: "transparent"
|
||||
}
|
||||
fill={fill}
|
||||
style={{ color: color ? color : "var(--foreground)" }}
|
||||
{...props}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user