diff --git a/src/plugin-hooks/tests/__snapshots__/useSortBy.test.js.snap b/src/plugin-hooks/tests/__snapshots__/useSortBy.test.js.snap index 0e939d3..8fc5f09 100644 --- a/src/plugin-hooks/tests/__snapshots__/useSortBy.test.js.snap +++ b/src/plugin-hooks/tests/__snapshots__/useSortBy.test.js.snap @@ -5,7 +5,7 @@ Snapshot Diff: - First value + Second value -@@ -22,11 +22,13 @@ +@@ -20,11 +20,13 @@ colspan="1" style="cursor: pointer;" title="Toggle SortBy" @@ -20,7 +20,7 @@ Snapshot Diff: colspan="1" style="cursor: pointer;" title="Toggle SortBy" -@@ -69,66 +71,66 @@ +@@ -67,66 +69,66 @@ @@ -112,7 +112,7 @@ Snapshot Diff: - First value + Second value -@@ -23,11 +23,11 @@ +@@ -21,11 +21,11 @@ style="cursor: pointer;" title="Toggle SortBy" > @@ -125,7 +125,7 @@ Snapshot Diff: @@ -158,7 +158,7 @@ Snapshot Diff: firstName: joe -@@ -111,26 +111,26 @@ +@@ -109,26 +109,26 @@ progress: 10 diff --git a/src/plugin-hooks/useSortBy.js b/src/plugin-hooks/useSortBy.js index a493122..e433b69 100755 --- a/src/plugin-hooks/useSortBy.js +++ b/src/plugin-hooks/useSortBy.js @@ -233,7 +233,7 @@ function useInstance(instance) { style: { cursor: canSort ? 'pointer' : undefined, }, - title: 'Toggle SortBy', + title: canSort ? 'Toggle SortBy' : undefined, }, applyPropHooks( instanceRef.current.hooks.getSortByToggleProps,