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

feat: disable sorting on selected columns (#5652)

This commit is contained in:
Mateusz Kwasniewski 2023-12-15 12:47:00 +01:00 committed by GitHub
parent cbd6aa1324
commit bf4d37fded
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View File

@ -10,6 +10,7 @@ const StyledLink = styled(Link, {
textDecorationColor: theme.palette.text.disabled,
textDecorationStyle: 'dashed',
textUnderlineOffset: theme.spacing(0.5),
whiteSpace: 'nowrap',
}));
interface ITooltipLinkProps extends LinkProps {

View File

@ -188,6 +188,7 @@ const FeatureToggleListTableComponent: VFC = () => {
cell: ({ getValue, row }) => (
<FeatureSegmentCell value={getValue()} row={row} />
),
enableSorting: false,
}),
columnHelper.accessor(
(row) =>
@ -199,6 +200,7 @@ const FeatureToggleListTableComponent: VFC = () => {
cell: ({ getValue, row }) => (
<FeatureTagCell value={getValue()} row={row} />
),
enableSorting: false,
},
),
columnHelper.accessor('createdAt', {
@ -217,6 +219,7 @@ const FeatureToggleListTableComponent: VFC = () => {
columnHelper.accessor('stale', {
header: 'State',
cell: ({ getValue }) => <FeatureStaleCell value={getValue()} />,
enableSorting: false,
}),
],
[tableState.favoritesFirst],