Skip to content

Commit

Permalink
Re-organize file and folder structure
Browse files Browse the repository at this point in the history
  • Loading branch information
wujessica committed Jun 17, 2024
1 parent 6827629 commit 523d438
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 48 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { useRef } from 'react';

import { EnabledDataSources } from '@/components/Conversation/EnabledDataSources';
import { EnabledDataSources } from '@/components/Conversation/Composer/EnabledDataSources';
import IconButton from '@/components/IconButton';
import { IconName } from '@/components/Shared';
import { ACCEPTED_FILE_TYPES } from '@/constants';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ import { useResizeObserver } from '@react-hookz/web';
import { useEffect, useRef, useState } from 'react';

import { Tool } from '@/cohere-client';
import { ComposerError } from '@/components/Conversation/ComposerError';
import { ComposerFiles } from '@/components/Conversation/ComposerFiles';
import { ComposerToolbar } from '@/components/Conversation/ComposerToolbar';
import { DragDropFileUploadOverlay } from '@/components/Conversation/DragDropFileUploadOverlay';
import { ComposerError } from '@/components/Conversation/Composer/ComposerError';
import { ComposerFiles } from '@/components/Conversation/Composer/ComposerFiles';
import { ComposerToolbar } from '@/components/Conversation/Composer/ComposerToolbar';
import { DragDropFileUploadOverlay } from '@/components/Conversation/Composer/DragDropFileUploadOverlay';
import { Icon, STYLE_LEVEL_TO_CLASSES } from '@/components/Shared';
import { CHAT_COMPOSER_TEXTAREA_ID } from '@/constants';
import { useBreakpoint, useIsDesktop } from '@/hooks/breakpoint';
Expand All @@ -25,7 +25,7 @@ type Props = {
chatWindowRef?: React.RefObject<HTMLDivElement>;
};

const Composer: React.FC<Props> = ({
export const Composer: React.FC<Props> = ({
isFirstTurn,
value,
isStreaming,
Expand Down Expand Up @@ -198,5 +198,3 @@ const Square = () => (
<path d="M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48z" />
</svg>
);

export default Composer;

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { uniqBy } from 'lodash';
import React, { useCallback, useEffect, useMemo, useRef } from 'react';
import React, { useCallback, useEffect, useRef } from 'react';

import { FILE_TOOL_CATEGORY, Tool } from '@/cohere-client';
import Composer from '@/components/Conversation/Composer';
import { Tool } from '@/cohere-client';
import { Composer } from '@/components/Conversation/Composer';
import { Header } from '@/components/Conversation/Header';
import MessagingContainer from '@/components/Conversation/MessagingContainer';
import { Spinner } from '@/components/Shared';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,7 @@ export const Tooltip: React.FC<TooltipProps> = ({
className={cx(
'z-tooltip',
{
'max-w-[400px] rounded-sm border-none bg-secondary-900 !px-1 !py-0.5':
size === 'sm',
'max-w-[400px] rounded-sm border-none bg-secondary-900 px-1 py-0.5': size === 'sm',
'max-w-[300px] rounded border border-marble-400 bg-marble-200 px-4 py-2.5':
size === 'md',
},
Expand Down

0 comments on commit 523d438

Please sign in to comment.