@bento-core/query-bar 1.0.1-icdc.25 → 1.0.1-icdc.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -35,7 +35,7 @@ const QueryUrl = _ref => {
|
|
|
35
35
|
return acc;
|
|
36
36
|
}, {});
|
|
37
37
|
const query = JSON.stringify(_objectSpread(_objectSpread({}, pathFilterParams), localFind));
|
|
38
|
-
const url =
|
|
38
|
+
const url = rootPath + encodeURIComponent(query);
|
|
39
39
|
const copyUrl = async () => {
|
|
40
40
|
toggleOpen(!open);
|
|
41
41
|
await navigator.clipboard.writeText(url);
|
package/package.json
CHANGED
|
@@ -33,7 +33,8 @@ const QueryUrl = ({
|
|
|
33
33
|
...pathFilterParams,
|
|
34
34
|
...localFind,
|
|
35
35
|
});
|
|
36
|
-
|
|
36
|
+
|
|
37
|
+
const url = rootPath + encodeURIComponent(query);
|
|
37
38
|
|
|
38
39
|
const copyUrl = async () => {
|
|
39
40
|
toggleOpen(!open);
|
|
@@ -49,7 +50,7 @@ const QueryUrl = ({
|
|
|
49
50
|
onClick={toggleDisplay}
|
|
50
51
|
className={classes.viewLinkToggleBtn}
|
|
51
52
|
>
|
|
52
|
-
{
|
|
53
|
+
{(display) ? 'Hide Query URL' : 'Show Query URL'}
|
|
53
54
|
</Button>
|
|
54
55
|
{
|
|
55
56
|
(display) && (
|