1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-25 00:07:47 +01:00

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.
This commit is contained in:
Thomas Heartman 2024-05-29 08:38:00 +02:00 committed by GitHub
parent 3aa7e89a3e
commit 0f3d93099d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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}
/>
<ChangeRequestTable
environments={filteredEnvs}
enableEnvironment={onEnable}
disableEnvironment={onDisable}
/>
<ScrollContainer>
<ChangeRequestTable
environments={filteredEnvs}
enableEnvironment={onEnable}
disableEnvironment={onDisable}
/>
</ScrollContainer>
</ConfigButton>
);
};