diff --git a/client/src/pages/new-post.tsx b/client/src/pages/new-post.tsx index 73dd561..32c1c73 100644 --- a/client/src/pages/new-post.tsx +++ b/client/src/pages/new-post.tsx @@ -1,4 +1,4 @@ -import { useState, useCallback, useRef, useEffect } from "react"; +import { useState, useCallback, useRef, useMemo } from "react"; import { useQuery, useMutation } from "@tanstack/react-query"; import { useLocation } from "wouter"; import { Send, Sparkles, Image as ImageIcon, Calendar, Upload, Camera, GripVertical, Loader2 } from "lucide-react"; @@ -60,6 +60,8 @@ function SortableMediaItem({ transition, }; + const isVideo = media.type === 'video'; + return (
- {media.fileName} + {isVideo ? ( +