diff --git a/frontend/app/components/Client/Projects/ProjectCaptureRate.tsx b/frontend/app/components/Client/Projects/ProjectCaptureRate.tsx index f87536e95..0f0d76938 100644 --- a/frontend/app/components/Client/Projects/ProjectCaptureRate.tsx +++ b/frontend/app/components/Client/Projects/ProjectCaptureRate.tsx @@ -40,7 +40,7 @@ function ProjectCaptureRate(props: Props) { } }, [projectId]); - React.useEffect(() => { + useEffect(() => { setConditions(captureConditions.map((condition: any) => new Conditions(condition, true, isMobile))); }, [captureConditions]); diff --git a/frontend/app/components/Client/Projects/Projects.tsx b/frontend/app/components/Client/Projects/Projects.tsx index 89644f354..418963784 100644 --- a/frontend/app/components/Client/Projects/Projects.tsx +++ b/frontend/app/components/Client/Projects/Projects.tsx @@ -1,5 +1,5 @@ import React from 'react'; -import { App, Button, Card, Layout, Space, Typography } from 'antd'; +import { App, Button, Card, Layout, Space, Tooltip, Typography } from 'antd'; import ProjectList from 'Components/Client/Projects/ProjectList'; import ProjectTabs from 'Components/Client/Projects/ProjectTabs'; import { useHistory } from 'react-router-dom'; @@ -52,7 +52,7 @@ function Projects() { }} title="Projects" extra={[ - ]} @@ -68,8 +68,10 @@ function Projects() { style={{ height: 46 }}>
{project?.name} - + className="capitalize !m-0 whitespace-nowrap truncate"> + {project?.name} + +
@@ -90,9 +92,7 @@ function Projects() { export default observer(Projects); -function ProjectKeyButton() { - const { projectsStore } = useStore(); - const { project } = projectsStore.config; +function ProjectKeyButton({ project }: { project: Project | null }) { const { message } = App.useApp(); const copyKey = () => { @@ -105,6 +105,8 @@ function ProjectKeyButton() { }; return ( -