diff --git a/examples/column-hiding/yarn.lock b/examples/column-hiding/yarn.lock index 5e99a87..8a7c0d8 100644 --- a/examples/column-hiding/yarn.lock +++ b/examples/column-hiding/yarn.lock @@ -3652,16 +3652,16 @@ eslint-scope@^4.0.0, eslint-scope@^4.0.3: estraverse "^4.1.1" eslint-utils@^1.3.1: - version "1.4.0" - resolved "https://registry.yarnpkg.com/eslint-utils/-/eslint-utils-1.4.0.tgz#e2c3c8dba768425f897cf0f9e51fe2e241485d4c" - integrity sha512-7ehnzPaP5IIEh1r1tkjuIrxqhNkzUJa9z3R92tLJdZIVdWaczEhr3EbhGtsMrVxi1KeR8qA7Off6SWc5WNQqyQ== + version "1.4.3" + resolved "https://registry.yarnpkg.com/eslint-utils/-/eslint-utils-1.4.3.tgz#74fec7c54d0776b6f67e0251040b5806564e981f" + integrity sha512-fbBN5W2xdY45KulGXmLHZ3c3FHfVYmKg0IrAKGOkT/464PQsx2UeIzfz1RmEci+KLm1bBaAzZAh8+/E+XAeZ8Q== dependencies: - eslint-visitor-keys "^1.0.0" + eslint-visitor-keys "^1.1.0" -eslint-visitor-keys@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-1.0.0.tgz#3f3180fb2e291017716acb4c9d6d5b5c34a6a81d" - integrity sha512-qzm/XxIbxm/FHyH341ZrbnMUpe+5Bocte9xkmFMzPMjRaZMcXww+MpBptFvtU+79L362nqiLhekCxCxDPaUMBQ== +eslint-visitor-keys@^1.0.0, eslint-visitor-keys@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-1.1.0.tgz#e2a82cea84ff246ad6fb57f9bde5b46621459ec2" + integrity sha512-8y9YjtM1JBJU/A9Kc+SbaOV4y29sSWckBwMHa+FGtVj5gN/sbnKDf6xJUl+8g7FAij9LVaP8C24DUiH/f/2Z9A== eslint@^5.16.0: version "5.16.0" diff --git a/sizes-cjs.json b/sizes-cjs.json index ea4c870..5feca7e 100644 --- a/sizes-cjs.json +++ b/sizes-cjs.json @@ -1,4 +1,14 @@ [ + { + "timestamp": 1575578830463, + "files": [ + { + "filename": "index.js", + "size": 21245, + "delta": 652 + } + ] + }, { "timestamp": 1575555421868, "files": [ diff --git a/sizes-es.json b/sizes-es.json index c8291d0..c4366df 100644 --- a/sizes-es.json +++ b/sizes-es.json @@ -1,4 +1,14 @@ [ + { + "timestamp": 1575578837727, + "files": [ + { + "filename": "index.es.js", + "size": 21023, + "delta": 575 + } + ] + }, { "timestamp": 1575555429414, "files": [ 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,