mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-19 18:00:15 +01:00
refactor(Nav/Conversation): reorganize imports and fix import paths
This commit is contained in:
parent
4898f7489b
commit
dd8bc39001
10 changed files with 42 additions and 25 deletions
|
|
@ -1,11 +1,18 @@
|
|||
import Conversation from './Conversation';
|
||||
import { TConversation } from '@librechat/data-provider';
|
||||
|
||||
export default function Conversations({ conversations, moveToTop }) {
|
||||
export default function Conversations({
|
||||
conversations,
|
||||
moveToTop,
|
||||
}: {
|
||||
conversations: TConversation[];
|
||||
moveToTop: () => void;
|
||||
}) {
|
||||
return (
|
||||
<>
|
||||
{conversations &&
|
||||
conversations.length > 0 &&
|
||||
conversations.map((convo) => {
|
||||
conversations.map((convo: TConversation) => {
|
||||
return (
|
||||
<Conversation key={convo.conversationId} conversation={convo} retainView={moveToTop} />
|
||||
);
|
||||
5
client/src/components/Conversations/index.ts
Normal file
5
client/src/components/Conversations/index.ts
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
export { default as Pages } from './Pages';
|
||||
export { default as Conversation } from './Conversation';
|
||||
export { default as DeleteButton } from './DeleteButton';
|
||||
export { default as RenameButton } from './RenameButton';
|
||||
export { default as Conversations } from './Conversations';
|
||||
Loading…
Add table
Add a link
Reference in a new issue