feat: add in prettier and format code for consistency (#168)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { Conversation, KeyValuePair } from "@/types";
|
||||
import { FC } from "react";
|
||||
import { ConversationComponent } from "./Conversation";
|
||||
import { Conversation, KeyValuePair } from '@/types';
|
||||
import { FC } from 'react';
|
||||
import { ConversationComponent } from './Conversation';
|
||||
|
||||
interface Props {
|
||||
loading: boolean;
|
||||
@@ -8,12 +8,22 @@ interface Props {
|
||||
selectedConversation: Conversation;
|
||||
onSelectConversation: (conversation: Conversation) => void;
|
||||
onDeleteConversation: (conversation: Conversation) => void;
|
||||
onUpdateConversation: (conversation: Conversation, data: KeyValuePair) => void;
|
||||
onUpdateConversation: (
|
||||
conversation: Conversation,
|
||||
data: KeyValuePair,
|
||||
) => void;
|
||||
}
|
||||
|
||||
export const Conversations: FC<Props> = ({ loading, conversations, selectedConversation, onSelectConversation, onDeleteConversation, onUpdateConversation }) => {
|
||||
export const Conversations: FC<Props> = ({
|
||||
loading,
|
||||
conversations,
|
||||
selectedConversation,
|
||||
onSelectConversation,
|
||||
onDeleteConversation,
|
||||
onUpdateConversation,
|
||||
}) => {
|
||||
return (
|
||||
<div className="flex flex-col gap-1 w-full pt-2">
|
||||
<div className="flex w-full flex-col gap-1 pt-2">
|
||||
{conversations.slice().reverse().map((conversation, index) => (
|
||||
<ConversationComponent
|
||||
key={index}
|
||||
|
||||
Reference in New Issue
Block a user