mirror of
https://github.com/OpenHands/OpenHands.git
synced 2025-12-26 05:48:36 +08:00
refactor: recent conversation
This commit is contained in:
parent
1f0470515a
commit
2c431cbbee
@ -8,6 +8,7 @@ import { formatTimeDelta } from "#/utils/format-time-delta";
|
||||
import { I18nKey } from "#/i18n/declaration";
|
||||
import { ConversationStatusIndicator } from "./conversation-status-indicator";
|
||||
import RepoForkedIcon from "#/icons/repo-forked.svg?react";
|
||||
import { normalizeConversationId } from "#/utils/utils";
|
||||
|
||||
interface RecentConversationProps {
|
||||
conversation: Conversation;
|
||||
@ -20,7 +21,9 @@ export function RecentConversation({ conversation }: RecentConversationProps) {
|
||||
conversation.selected_repository && conversation.selected_branch;
|
||||
|
||||
return (
|
||||
<Link to={`/conversations/${conversation.conversation_id}`}>
|
||||
<Link
|
||||
to={`/conversations/${normalizeConversationId(conversation.conversation_id, conversation.conversation_version)}`}
|
||||
>
|
||||
<button
|
||||
type="button"
|
||||
className="flex flex-col gap-1 p-[14px] cursor-pointer w-full rounded-lg hover:bg-[#5C5D62] transition-all duration-300 text-left"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user