From 0f3d93099dd87566f1b93c5c6cfb6f02d16f2055 Mon Sep 17 00:00:00 2001 From: Thomas Heartman Date: Wed, 29 May 2024 08:38:00 +0200 Subject: [PATCH] fix: CR button shows docs for change requests when selected (#7196) The props had been left out of the config button by mistake. It also puts the CR table in a scrollable div that had been removed by mistake. --- .../ChangeRequestTableConfigButton.tsx | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/frontend/src/component/project/Project/CreateProject/NewCreateProjectForm/ConfigButtons/ChangeRequestTableConfigButton.tsx b/frontend/src/component/project/Project/CreateProject/NewCreateProjectForm/ConfigButtons/ChangeRequestTableConfigButton.tsx index 28c3f9c935..58a31a21a9 100644 --- a/frontend/src/component/project/Project/CreateProject/NewCreateProjectForm/ConfigButtons/ChangeRequestTableConfigButton.tsx +++ b/frontend/src/component/project/Project/CreateProject/NewCreateProjectForm/ConfigButtons/ChangeRequestTableConfigButton.tsx @@ -3,7 +3,10 @@ import { ConfigButton, type ConfigButtonProps } from './ConfigButton'; import { InputAdornment } from '@mui/material'; import Search from '@mui/icons-material/Search'; import { ChangeRequestTable } from './ChangeRequestTable'; -import { TableSearchInput } from './ChangeRequestTableConfigButton.styles'; +import { + ScrollContainer, + TableSearchInput, +} from './ChangeRequestTableConfigButton.styles'; type ChangeRequestTableConfigButtonProps = Pick< ConfigButtonProps, @@ -35,8 +38,6 @@ export const ChangeRequestTableConfigButton: FC< projectChangeRequestConfiguration, updateProjectChangeRequestConfiguration, activeEnvironments, - onOpen = () => {}, - onClose = () => {}, ...props }) => { const configured = useMemo(() => { @@ -118,11 +119,13 @@ export const ChangeRequestTableConfigButton: FC< }} onKeyDown={toggleTopItem} /> - + + + ); };