Skip to content

Commit

Permalink
feat: disable sorting on selected columns (#5652)
Browse files Browse the repository at this point in the history
  • Loading branch information
kwasniew committed Dec 15, 2023
1 parent cbd6aa1 commit bf4d37f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions frontend/src/component/common/TooltipLink/TooltipLink.tsx
Expand Up @@ -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 {
Expand Down
Expand Up @@ -188,6 +188,7 @@ const FeatureToggleListTableComponent: VFC = () => {
cell: ({ getValue, row }) => (
<FeatureSegmentCell value={getValue()} row={row} />
),
enableSorting: false,
}),
columnHelper.accessor(
(row) =>
Expand All @@ -199,6 +200,7 @@ const FeatureToggleListTableComponent: VFC = () => {
cell: ({ getValue, row }) => (
<FeatureTagCell value={getValue()} row={row} />
),
enableSorting: false,
},
),
columnHelper.accessor('createdAt', {
Expand All @@ -217,6 +219,7 @@ const FeatureToggleListTableComponent: VFC = () => {
columnHelper.accessor('stale', {
header: 'State',
cell: ({ getValue }) => <FeatureStaleCell value={getValue()} />,
enableSorting: false,
}),
],
[tableState.favoritesFirst],
Expand Down

0 comments on commit bf4d37f

Please sign in to comment.