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:
parent
3aa7e89a3e
commit
0f3d93099d
@ -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}
|
||||
/>
|
||||
<ScrollContainer>
|
||||
<ChangeRequestTable
|
||||
environments={filteredEnvs}
|
||||
enableEnvironment={onEnable}
|
||||
disableEnvironment={onDisable}
|
||||
/>
|
||||
</ScrollContainer>
|
||||
</ConfigButton>
|
||||
);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user