diff --git a/frontend/src/component/project/Project/Project.tsx b/frontend/src/component/project/Project/Project.tsx
index 15dbbf2eeb79..02573b9f3ea4 100644
--- a/frontend/src/component/project/Project/Project.tsx
+++ b/frontend/src/component/project/Project/Project.tsx
@@ -118,6 +118,29 @@ const ProjectStatusButton = styled(Button)(({ theme }) => ({
},
}));
+const ProjectStatusSvgWithMargin = styled(ProjectStatusSvg)(({ theme }) => ({
+ marginLeft: theme.spacing(0.5),
+}));
+
+const ProjectStatus = () => {
+ const [projectStatusOpen, setProjectStatusOpen] = useState(false);
+ return (
+ <>
+ setProjectStatusOpen(true)}
+ startIcon={}
+ data-loading-project
+ >
+ Project status
+
+ setProjectStatusOpen(false)}
+ />
+ >
+ );
+};
+
export const Project = () => {
const projectId = useRequiredPathParam('projectId');
const { trackEvent } = usePlausibleTracker();
@@ -133,7 +156,6 @@ export const Project = () => {
const projectName = project?.name || projectId;
const { favorite, unfavorite } = useFavoriteProjectsApi();
const simplifyProjectOverview = useUiFlag('simplifyProjectOverview');
- const [projectStatusOpen, setProjectStatusOpen] = useState(false);
const [showDelDialog, setShowDelDialog] = useState(false);
@@ -297,15 +319,7 @@ export const Project = () => {
}
/>
- {simplifyProjectOverview && (
- setProjectStatusOpen(true)}
- startIcon={}
- data-loading-project
- >
- Project status
-
- )}
+ {simplifyProjectOverview && }
@@ -428,10 +442,6 @@ export const Project = () => {
setOpen={setModalOpen}
project={projectId}
/>
- setProjectStatusOpen(false)}
- />
);
};