+
{topTags?.map((tag) => {
const now = new Date();
const formattedTag = {
diff --git a/src/hooks/useAvatar.ts b/src/hooks/useAvatar.ts
index 5a5a282..596b727 100644
--- a/src/hooks/useAvatar.ts
+++ b/src/hooks/useAvatar.ts
@@ -2,7 +2,7 @@ import { useMemo } from "react";
import { createAvatar } from "@dicebear/core";
import { notionists } from "@dicebear/collection";
-import { avatarColorsThemeWithoutHash } from "~/lib/constant";
+import { avatarColorsTheme } from "~/lib/constant";
export default function useAvatar(seed: string, scale = 100) {
const avatar = useMemo(() => {
@@ -11,7 +11,7 @@ export default function useAvatar(seed: string, scale = 100) {
size: 256,
radius: 50,
scale,
- backgroundColor: avatarColorsThemeWithoutHash,
+ backgroundColor: avatarColorsTheme,
}).toDataUri();
}, [scale, seed]);
diff --git a/src/lib/constant.tsx b/src/lib/constant.tsx
index 1f15946..69e4d20 100644
--- a/src/lib/constant.tsx
+++ b/src/lib/constant.tsx
@@ -5,26 +5,16 @@ import {
faDiaspora,
} from "@fortawesome/free-brands-svg-icons";
import { EmotionType } from "@prisma/client";
-import {
- FluentEmojiFlatFaceWithSymbolsOnMouth,
- FluentEmojiFlatHundredPoints,
- FluentEmojiFlatRollingOnTheFloorLaughing,
- FluentEmojiFlatThinkingFace,
-} from "~/components/Icons";
import { Roboto_Slab } from "next/font/google";
export const avatarColorsTheme = [
- "#4D7CDB",
- "#D51010",
- "#FFFFFF",
- "#E6E8EA",
- "#A5C8E2",
+ "4D7CDB",
+ "D51010",
+ "FFFFFF",
+ "E6E8EA",
+ "A5C8E2",
];
-export const avatarColorsThemeWithoutHash = avatarColorsTheme.map((color) =>
- color.slice(1, color.length),
-);
-
export const sourceEnumHash = new Map([
[
"Twitter",
@@ -52,29 +42,24 @@ export const sourceEnumHash = new Map([
],
]);
-export const reactionsMap = (emotion: string, className: string) => {
+export const reactionsMap = (emotion: string) => {
const map: Record<
string,
{
name: EmotionType;
- child: JSX.Element;
}
> = {
Kocak: {
name: EmotionType.Kocak,
- child: ,
},
Hah: {
name: EmotionType.Hah,
- child: ,
},
Marah: {
name: EmotionType.Marah,
- child: ,
},
Setuju: {
name: EmotionType.Setuju,
- child: ,
},
};