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:
parent
cbd6aa1324
commit
bf4d37fded
@ -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 {
|
||||||
|
@ -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],
|
||||||
|
Loading…
Reference in New Issue
Block a user