Skip to content

Commit

Permalink
refactor: shinkai-tray ui components
Browse files Browse the repository at this point in the history
  • Loading branch information
paulclindo committed Nov 29, 2023
1 parent 8dfe169 commit c7e0f77
Show file tree
Hide file tree
Showing 36 changed files with 144 additions and 1,308 deletions.
16 changes: 9 additions & 7 deletions apps/shinkai-tray/src/components/chat/message.tsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
import type { ShinkaiMessage } from '@shinkai_network/shinkai-message-ts/models';
import { MessageSchemaType } from '@shinkai_network/shinkai-message-ts/models';
import { ChatConversationMessage } from '@shinkai_network/shinkai-node-state/lib/queries/getChatConversation/types';
import MarkdownPreview from '@uiw/react-markdown-preview';

import { cn } from '../../lib/utils';
import { Avatar, AvatarFallback, AvatarImage } from '../ui/avatar';
import CopyToClipboardIcon from '../ui/copy-to-clipboard-icon';
import {
Avatar,
AvatarFallback,
AvatarImage,
CopyToClipboardIcon,
Tooltip,
TooltipContent,
TooltipProvider,
TooltipTrigger,
} from '../ui/tooltip';
} from '@shinkai_network/shinkai-ui';
import MarkdownPreview from '@uiw/react-markdown-preview';

import { cn } from '../../lib/utils';

export const getMessageFilesInbox = (
message: ShinkaiMessage,
Expand Down Expand Up @@ -70,7 +72,7 @@ const Message = ({
</Avatar>
<div
className={cn(
'group flex items-start gap-1 break-words rounded-lg bg-transparent px-2.5 py-3 overflow-x-hidden',
'group flex items-start gap-1 overflow-x-hidden break-words rounded-lg bg-transparent px-2.5 py-3',
message.isLocal
? 'rounded-tl-none border border-slate-800'
: 'rounded-tr-none border-none bg-[rgba(217,217,217,0.04)]',
Expand Down
48 changes: 0 additions & 48 deletions apps/shinkai-tray/src/components/ui/avatar.tsx

This file was deleted.

70 changes: 0 additions & 70 deletions apps/shinkai-tray/src/components/ui/button.tsx

This file was deleted.

28 changes: 0 additions & 28 deletions apps/shinkai-tray/src/components/ui/checkbox.tsx

This file was deleted.

153 changes: 0 additions & 153 deletions apps/shinkai-tray/src/components/ui/command.tsx

This file was deleted.

48 changes: 0 additions & 48 deletions apps/shinkai-tray/src/components/ui/copy-to-clipboard-icon.tsx

This file was deleted.

Loading

0 comments on commit c7e0f77

Please sign in to comment.