Remove tooltip if columnDisableSortBy (#1685)

* Remove tooltip if columnDisableSortBy

* update sorting test snapshot
This commit is contained in:
Martin Brenner
2019-12-05 15:48:57 -05:00
committed by Tanner Linsley
parent e5d672b9ea
commit 7169b3100b
2 changed files with 6 additions and 6 deletions
@@ -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 @@
</tr>
</thead>
<tbody>
@@ -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:
<th
colspan="1"
style="cursor: pointer;"
@@ -71,26 +71,26 @@
@@ -69,26 +69,26 @@
</tr>
</thead>
<tbody>
@@ -158,7 +158,7 @@ Snapshot Diff:
<tr>
<td>
firstName: joe
@@ -111,26 +111,26 @@
@@ -109,26 +109,26 @@
progress: 10
</td>
</tr>
+1 -1
View File
@@ -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,