1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-02-04 00:18:01 +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, textDecorationColor: theme.palette.text.disabled,
textDecorationStyle: 'dashed', textDecorationStyle: 'dashed',
textUnderlineOffset: theme.spacing(0.5), textUnderlineOffset: theme.spacing(0.5),
whiteSpace: 'nowrap',
})); }));
interface ITooltipLinkProps extends LinkProps { interface ITooltipLinkProps extends LinkProps {

View File

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