Skip to content

πŸ™Œ OpenHands: AI-Driven Development

Revert "Only show start project button in conversations" (#6698)

sp.wackff25e794ef19
diff --git a/frontend/src/components/shared/buttons/exit-project-button.tsx b/frontend/src/components/shared/buttons/exit-project-button.tsx
index 8e40bf5efa..5a6db074f6 100644
--- a/frontend/src/components/shared/buttons/exit-project-button.tsx
+++ b/frontend/src/components/shared/buttons/exit-project-button.tsx
@@ -1,5 +1,4 @@
import { useTranslation } from "react-i18next";
-import { useLocation } from "react-router";
import { I18nKey } from "#/i18n/declaration";
import NewProjectIcon from "#/icons/new-project.svg?react";
import { TooltipButton } from "./tooltip-button";
@@ -10,12 +9,7 @@ interface ExitProjectButtonProps {
export function ExitProjectButton({ onClick }: ExitProjectButtonProps) {
const { t } = useTranslation();
- const location = useLocation();
const startNewProject = t(I18nKey.PROJECT$START_NEW);
-
- // Only show the button in the conversations page
- if (!location.pathname.startsWith("/conversations")) return null;
-
return (
<TooltipButton
tooltip={startNewProject}