Skip to content

Commit e7bc2d4

Browse files
committed
border color matched filter issue #57
1 parent 8a393a8 commit e7bc2d4

1 file changed

Lines changed: 13 additions & 5 deletions

File tree

src/components/Error/ErrorCard.jsx

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,22 @@ function ErrorCard({ error }) {
2424
}
2525
return setErrorTypeColor("#7e1aa5");
2626
}, [errorTypeColor])
27-
27+
let item = error.type;
2828

2929
return (
3030
<div
31-
className="py-4 mb-4 col-span-12 md:col-span-6 xl:col-span-4 px-2 md:px-6 border-l-4 rounded-lg items-start bg-dark-secondary flex flex-col"
32-
style={{
33-
borderColor: errorTypeColor,
34-
}}
31+
className={`py-4 mb-4 col-span-12 md:col-span-6 xl:col-span-4 px-2 md:px-6 border-l-4 rounded-lg items-start bg-dark-secondary flex flex-col ${item === "add"
32+
? "border-[#4024e0]"
33+
: item === "commit"
34+
? "border-[#1a5ba5]"
35+
: item === "merge"
36+
? "border-[#118d7c]"
37+
: item === "push"
38+
? "border-[#8d54e1]"
39+
: item === "branch"
40+
? "border-[#40E4F0]"
41+
: "border-[#7e1aa5]"
42+
}`}
3543
>
3644
<h3 className="text-lg font-medium">{error.title}</h3>
3745

0 commit comments

Comments
 (0)