From 1f57b4ea3219f91265c08b947f20382fed422742 Mon Sep 17 00:00:00 2001 From: Thomas Heartman Date: Mon, 5 Feb 2024 11:29:58 +0900 Subject: [PATCH] chore: wrap change request overview in plausible context --- .../src/component/project/Project/Project.tsx | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/frontend/src/component/project/Project/Project.tsx b/frontend/src/component/project/Project/Project.tsx index 573f3afda2..d7bea11e1a 100644 --- a/frontend/src/component/project/Project/Project.tsx +++ b/frontend/src/component/project/Project/Project.tsx @@ -41,6 +41,7 @@ import { Badge } from 'component/common/Badge/Badge'; import { ProjectDoraMetrics } from './ProjectDoraMetrics/ProjectDoraMetrics'; import { UiFlags } from 'interfaces/uiConfig'; import { HiddenProjectIconWithTooltip } from './HiddenProjectIconWithTooltip/HiddenProjectIconWithTooltip'; +import { ChangeRequestPlausibleProvider } from 'component/changeRequest/ChangeRequestContext'; const StyledBadge = styled(Badge)(({ theme }) => ({ position: 'absolute', @@ -76,6 +77,11 @@ export const Project = () => { const [showDelDialog, setShowDelDialog] = useState(false); + const [ + changeRequestChangesWillOverwrite, + setChangeRequestChangesWillOverwrite, + ] = useState(false); + const tabs: ITab[] = [ { title: 'Overview', @@ -293,7 +299,18 @@ export const Project = () => { /> } + element={ + + setChangeRequestChangesWillOverwrite(true), + }} + > + + + } /> } /> } />