sort the data, not the UI. buttons are now tab-able from the top down (#176)

This commit is contained in:
Brad Ullman 2023-03-25 21:11:48 -07:00 committed by GitHub
parent e18276223b
commit fffb729b34
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -13,8 +13,8 @@ interface Props {
export const Conversations: FC<Props> = ({ loading, conversations, selectedConversation, onSelectConversation, onDeleteConversation, onUpdateConversation }) => { export const Conversations: FC<Props> = ({ loading, conversations, selectedConversation, onSelectConversation, onDeleteConversation, onUpdateConversation }) => {
return ( return (
<div className="flex flex-col-reverse gap-1 w-full pt-2"> <div className="flex flex-col gap-1 w-full pt-2">
{conversations.map((conversation, index) => ( {conversations.slice().reverse().map((conversation, index) => (
<ConversationComponent <ConversationComponent
key={index} key={index}
selectedConversation={selectedConversation} selectedConversation={selectedConversation}