File tree Expand file tree Collapse file tree 1 file changed +0
-6
lines changed
frontend/src/components/shared/buttons Expand file tree Collapse file tree 1 file changed +0
-6
lines changed Original file line number Diff line number Diff line change 1
1
import { useTranslation } from "react-i18next" ;
2
- import { useLocation } from "react-router" ;
3
2
import { I18nKey } from "#/i18n/declaration" ;
4
3
import NewProjectIcon from "#/icons/new-project.svg?react" ;
5
4
import { TooltipButton } from "./tooltip-button" ;
@@ -10,12 +9,7 @@ interface ExitProjectButtonProps {
10
9
11
10
export function ExitProjectButton ( { onClick } : ExitProjectButtonProps ) {
12
11
const { t } = useTranslation ( ) ;
13
- const location = useLocation ( ) ;
14
12
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
-
19
13
return (
20
14
< TooltipButton
21
15
tooltip = { startNewProject }
You can’t perform that action at this time.
0 commit comments