Skip to content

Commit

Permalink
♻️ refactor: move ChatInput to features/ChatInput (#4699)
Browse files Browse the repository at this point in the history
  • Loading branch information
arvinxx authored Nov 15, 2024
1 parent a723f1a commit 5737d3f
Show file tree
Hide file tree
Showing 27 changed files with 13 additions and 3 deletions.
4 changes: 1 addition & 3 deletions src/app/(main)/chat/(workspace)/@conversation/default.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
import { isMobileDevice } from '@/utils/server/responsive';

import ChatHydration from './features/ChatHydration';
import DesktopChatInput from './features/ChatInput/Desktop';
import MobileChatInput from './features/ChatInput/Mobile';
import ChatInput from './features/ChatInput';
import ChatList from './features/ChatList';
import ZenModeToast from './features/ZenModeToast';

const ChatConversation = () => {
const mobile = isMobileDevice();
const ChatInput = mobile ? MobileChatInput : DesktopChatInput;

return (
<>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import DesktopChatInput from '@/features/ChatInput/Desktop';
import MobileChatInput from '@/features/ChatInput/Mobile';
import { isMobileDevice } from '@/utils/server/responsive';

const ChatInput = () => {
const mobile = isMobileDevice();
const Input = mobile ? MobileChatInput : DesktopChatInput;

return <Input />;
};

export default ChatInput;
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 5737d3f

Please sign in to comment.