mirror of
https://github.com/R0m1k3/Socialflow.git
synced 2026-10-11 17:26:45 +02:00
Improve story preview by displaying emojis correctly
Integrates Twemoji library into the PreviewModal component to render emojis as images, ensuring accurate visual representation of posts. Replit-Commit-Author: Agent Replit-Commit-Session-Id: ae4037a0-2a6f-4530-9bac-79b543286bda Replit-Commit-Checkpoint-Type: intermediate_checkpoint Replit-Commit-Event-Id: f14eb440-b642-488d-9a57-924557db0bc4 Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/397bca8c-984f-43ff-841a-10897aeb8140/ae4037a0-2a6f-4530-9bac-79b543286bda/JcM96XE
This commit is contained in:
1 parent
86ac089fb2
commit
f2ba034fc4
1 file changed
+4
-1
@@ -5,6 +5,7 @@ import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from '@
|
|||||||
import { ChevronLeft, ChevronRight, Send, Facebook, Instagram, Heart, MessageCircle, Share2, Bookmark } from 'lucide-react';
|
import { ChevronLeft, ChevronRight, Send, Facebook, Instagram, Heart, MessageCircle, Share2, Bookmark } from 'lucide-react';
|
||||||
import type { Media } from '@shared/schema';
|
import type { Media } from '@shared/schema';
|
||||||
import { removeHashtags } from '@shared/emoji';
|
import { removeHashtags } from '@shared/emoji';
|
||||||
|
import { EmojiText } from '@/components/emoji-text';
|
||||||
|
|
||||||
interface PreviewModalProps {
|
interface PreviewModalProps {
|
||||||
open: boolean;
|
open: boolean;
|
||||||
@@ -425,7 +426,9 @@ export function PreviewModal({
|
|||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{lines.map((line, idx) => (
|
{lines.map((line, idx) => (
|
||||||
<div key={idx}>{line}</div>
|
<div key={idx}>
|
||||||
|
<EmojiText text={line} emojiSize={fontSize} />
|
||||||
|
</div>
|
||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in new issue
Block a user