File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments