chore(frontend): Remove latest conversation text in home screen (#6851)

This commit is contained in:
sp.wack
2025-02-21 15:45:51 +04:00
committed by GitHub
parent d03b9775b5
commit 35bab5070d
2 changed files with 0 additions and 21 deletions

View File

@@ -239,9 +239,6 @@ class OpenHands {
body,
);
// TODO: remove this once we have a multi-conversation UI
localStorage.setItem("latest_conversation_id", data.conversation_id);
return data;
}

View File

@@ -1,8 +1,6 @@
import React from "react";
import { useDispatch } from "react-redux";
import { useTranslation } from "react-i18next";
import posthog from "posthog-js";
import { I18nKey } from "#/i18n/declaration";
import { setImportedProjectZip } from "#/state/initial-query-slice";
import { convertZipToBase64 } from "#/utils/convert-zip-to-base64";
import { useGitHubUser } from "#/hooks/query/use-github-user";
@@ -14,7 +12,6 @@ import { HeroHeading } from "#/components/shared/hero-heading";
import { TaskForm } from "#/components/shared/task-form";
function Home() {
const { t } = useTranslation();
const dispatch = useDispatch();
const formRef = React.useRef<HTMLFormElement>(null);
@@ -26,8 +23,6 @@ function Home() {
gitHubClientId: config?.GITHUB_CLIENT_ID || null,
});
const latestConversation = localStorage.getItem("latest_conversation_id");
return (
<div className="bg-base-secondary h-full rounded-xl flex flex-col items-center justify-center relative overflow-y-auto px-2">
<HeroHeading />
@@ -56,19 +51,6 @@ function Home() {
/>
</div>
</div>
{latestConversation && (
<div className="flex gap-4 w-full text-center mt-8">
<p className="text-center w-full">
{t(I18nKey.LANDING$OR)}&nbsp;
<a
className="underline"
href={`/conversations/${latestConversation}`}
>
{t(I18nKey.LANDING$RECENT_CONVERSATION)}
</a>
</p>
</div>
)}
</div>
);
}