diff --git a/src/components/miscellaneous/reactions/EmojiItem.tsx b/src/components/miscellaneous/reactions/EmojiItem.tsx index 377a8dfa..abe9d535 100644 --- a/src/components/miscellaneous/reactions/EmojiItem.tsx +++ b/src/components/miscellaneous/reactions/EmojiItem.tsx @@ -67,8 +67,8 @@ export const EmojiItem = ({ data, emoji, content_type }: EmojiItemProps) => { return ( ); diff --git a/src/components/miscellaneous/reactions/EmojiPickHandler.tsx b/src/components/miscellaneous/reactions/EmojiPickHandler.tsx index 6ec419a4..ad59d4fa 100644 --- a/src/components/miscellaneous/reactions/EmojiPickHandler.tsx +++ b/src/components/miscellaneous/reactions/EmojiPickHandler.tsx @@ -58,7 +58,7 @@ export const EmojiPickerHandler = ({ data, content_type }: ReactionHandlerProps) return ( diff --git a/src/components/miscellaneous/reactions/EmojiShowAll.tsx b/src/components/miscellaneous/reactions/EmojiShowAll.tsx index bee6c116..f5c13f57 100644 --- a/src/components/miscellaneous/reactions/EmojiShowAll.tsx +++ b/src/components/miscellaneous/reactions/EmojiShowAll.tsx @@ -14,7 +14,6 @@ export const EmojiShowAll = ({ data, content_type }: ReactionHandlerProps) => { const closeDialog = () => setOpen(false); const emojiCollections: Record = {}; - data?.reactions?.forEach((r) => { emojiCollections[r.emoji] = (emojiCollections[r.emoji] || 0) + 1; }); @@ -29,7 +28,7 @@ export const EmojiShowAll = ({ data, content_type }: ReactionHandlerProps) => { return ( diff --git a/src/components/miscellaneous/reactions/EmojiShowcase.tsx b/src/components/miscellaneous/reactions/EmojiShowcase.tsx index fafaca9c..fa9226f7 100644 --- a/src/components/miscellaneous/reactions/EmojiShowcase.tsx +++ b/src/components/miscellaneous/reactions/EmojiShowcase.tsx @@ -3,7 +3,7 @@ import { Stack } from '@mui/material'; import { EmojiItem } from './EmojiItem'; import { ReactionHandlerProps } from './ReactionHandler'; -export const EmojiShowcase = ({ data }: ReactionHandlerProps) => { +export const EmojiShowcase = ({ data, content_type }: ReactionHandlerProps) => { const emojiCollections: Record = {}; data?.reactions?.forEach((r) => { @@ -18,7 +18,7 @@ export const EmojiShowcase = ({ data }: ReactionHandlerProps) => { return ( {topEmojiCollections.map((emoji, index) => ( - + ))} ); diff --git a/src/pages/NewsDetails/components/NewsRenderer.tsx b/src/pages/NewsDetails/components/NewsRenderer.tsx index 802e4e13..89e3117a 100644 --- a/src/pages/NewsDetails/components/NewsRenderer.tsx +++ b/src/pages/NewsDetails/components/NewsRenderer.tsx @@ -60,7 +60,7 @@ const NewsRenderer = ({ data, preview = false }: NewsRendererProps) => { )} - + Publisert: {formatDate(parseISO(data.created_at), { time: false })} @@ -75,7 +75,6 @@ const NewsRenderer = ({ data, preview = false }: NewsRendererProps) => { )} - {data?.emojis_allowed && }