We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f31f14 commit 299c4aaCopy full SHA for 299c4aa
src/components/SocialListItem.tsx
@@ -9,6 +9,14 @@ import {
9
10
import { cn } from "@/lib/utils/cn"
11
12
+const socialColorClasses = {
13
+ reddit: "text-[#ff4301]",
14
+ twitter: "text-[#1da1f2]",
15
+ youtube: "text-[#ff0000]",
16
+ discord: "text-[#7289da]",
17
+ stackExchange: "text-[#48a2da]",
18
+}
19
+
20
const icons = {
21
reddit: FaRedditAlien,
22
twitter: FaXTwitter,
@@ -30,7 +38,7 @@ const SocialListItem = ({
30
38
const Icon = icons[socialIcon]
31
39
return (
32
40
<div className={cn("flex w-full items-center px-0 py-2", className)}>
33
- <Icon className={cn("size-10 pe-3 text-body")} />
41
+ <Icon className={cn("size-10 pe-3", socialColorClasses[socialIcon])} />
34
42
<div className="font-normal italic">{children}</div>
35
43
</div>
36
44
)
0 commit comments