Skip to content

Commit d2c1016

Browse files
authored
Revert "Only show start project button in conversations (#6626)"
This reverts commit 669e284.
1 parent a371562 commit d2c1016

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

frontend/src/components/shared/buttons/exit-project-button.tsx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { useTranslation } from "react-i18next";
2-
import { useLocation } from "react-router";
32
import { I18nKey } from "#/i18n/declaration";
43
import NewProjectIcon from "#/icons/new-project.svg?react";
54
import { TooltipButton } from "./tooltip-button";
@@ -10,12 +9,7 @@ interface ExitProjectButtonProps {
109

1110
export function ExitProjectButton({ onClick }: ExitProjectButtonProps) {
1211
const { t } = useTranslation();
13-
const location = useLocation();
1412
const startNewProject = t(I18nKey.PROJECT$START_NEW);
15-
16-
// Only show the button in the conversations page
17-
if (!location.pathname.startsWith("/conversations")) return null;
18-
1913
return (
2014
<TooltipButton
2115
tooltip={startNewProject}

0 commit comments

Comments
 (0)