diff --git a/src/components/dm/ChatArea.tsx b/src/components/dm/DMChatArea.tsx similarity index 98% rename from src/components/dm/ChatArea.tsx rename to src/components/dm/DMChatArea.tsx index bfff943..f510aeb 100644 --- a/src/components/dm/ChatArea.tsx +++ b/src/components/dm/DMChatArea.tsx @@ -14,7 +14,7 @@ import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from '@/comp import { ArrowLeft, Send, Loader2, AlertTriangle } from 'lucide-react'; import { cn } from '@/lib/utils'; -interface ChatAreaProps { +interface DMChatAreaProps { pubkey: string | null; onBack?: () => void; className?: string; @@ -147,7 +147,7 @@ const EmptyState = ({ isLoading }: { isLoading: boolean }) => { ); }; -export const ChatArea = ({ pubkey, onBack, className }: ChatAreaProps) => { +export const DMChatArea = ({ pubkey, onBack, className }: DMChatAreaProps) => { const { user } = useCurrentUser(); const { sendMessage, protocolMode, isLoading } = useDMContext(); const { messages } = useConversationMessages(pubkey || ''); diff --git a/src/components/dm/ConversationList.tsx b/src/components/dm/DMConversationList.tsx similarity index 98% rename from src/components/dm/ConversationList.tsx rename to src/components/dm/DMConversationList.tsx index b72ecbe..aaed78f 100644 --- a/src/components/dm/ConversationList.tsx +++ b/src/components/dm/DMConversationList.tsx @@ -11,7 +11,7 @@ import { Skeleton } from '@/components/ui/skeleton'; import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from '@/components/ui/tooltip'; import { cn } from '@/lib/utils'; -interface ConversationListProps { +interface DMConversationListProps { selectedPubkey: string | null; onSelectConversation: (pubkey: string) => void; className?: string; @@ -126,12 +126,12 @@ const ConversationListSkeleton = () => { ); }; -export const ConversationList = ({ +export const DMConversationList = ({ selectedPubkey, onSelectConversation, className, onStatusClick -}: ConversationListProps) => { +}: DMConversationListProps) => { const { conversations, isLoading } = useDMContext(); const [activeTab, setActiveTab] = useState<'known' | 'requests'>('known'); diff --git a/src/components/dm/MessagingInterface.tsx b/src/components/dm/DMMessagingInterface.tsx similarity index 88% rename from src/components/dm/MessagingInterface.tsx rename to src/components/dm/DMMessagingInterface.tsx index 0f68994..8b6fea1 100644 --- a/src/components/dm/MessagingInterface.tsx +++ b/src/components/dm/DMMessagingInterface.tsx @@ -1,6 +1,6 @@ import { useState } from 'react'; -import { ConversationList } from '@/components/dm/ConversationList'; -import { ChatArea } from '@/components/dm/ChatArea'; +import { DMConversationList } from '@/components/dm/DMConversationList'; +import { DMChatArea } from '@/components/dm/DMChatArea'; import { DMStatusInfo } from '@/components/dm/DMStatusInfo'; import { useDMContext } from '@/contexts/DMContext'; import { useIsMobile } from '@/hooks/useIsMobile'; @@ -13,11 +13,11 @@ import { DialogTitle, } from '@/components/ui/dialog'; -interface MessagingInterfaceProps { +interface DMMessagingInterfaceProps { className?: string; } -export const MessagingInterface = ({ className }: MessagingInterfaceProps) => { +export const DMMessagingInterface = ({ className }: DMMessagingInterfaceProps) => { const [selectedPubkey, setSelectedPubkey] = useState(null); const [statusModalOpen, setStatusModalOpen] = useState(false); const isMobile = useIsMobile(); @@ -57,7 +57,7 @@ export const MessagingInterface = ({ className }: MessagingInterfaceProps) => { isMobile && !showConversationList && "hidden", isMobile && showConversationList && "w-full" )}> - { isMobile && !showChatArea && "hidden", isMobile && showChatArea && "w-full" )}> - { useSeoMeta({ @@ -10,7 +10,7 @@ const Messages = () => { return (
- +
);