Skip to content

Commit 45cb2f1

Browse files
authored
Merge pull request #247 from fedspendingtransparency/fix/share-icon-dep
Fix Share Icon dependency
2 parents e2d6e82 + d312386 commit 45cb2f1

File tree

145 files changed

+589
-585
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

145 files changed

+589
-585
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,11 @@ To test components locally in the context it will be used either use `npm link`:
7474
3. Run npm link path/to/your/<consumer-context>/node_modules/react (example npm link ../<consumer-context>/node_modules/react; to integrate with usaspending.gov use `npm link ../usaspending-website/node_modules/react`)
7575
4. Navigate to the consumer context directory (i.e. for usaspending.gov the consumer context directory is "usaspending-website")
7676
5. Run `npm link data-transparency-ui`
77-
6. NOTE: After work is finished with the linked consumer context, it will be necessary to then unlink this library by doing the following:
77+
6. If you notice the link is not working as expected you may need to clear your consumer context directory cache
78+
1. Run `npm cache clean --force` in your consumer context directory
79+
2. Repeat link steps above
80+
81+
7. NOTE: After work is finished with the linked consumer context, it will be necessary to then unlink this library by doing the following:
7882
1. Navigate to the consumer context directory again.
7983
2. Run `npm unlink --no-save data-transparency-ui`
8084
3. Navigate to the `data-transparency-ui/` root.

components/ShareIcon.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ const ShareIcon = ({
8383
hideConfirmationText();
8484
}
8585
return hideConfirmationText.cancel;
86-
}, []);
86+
}, [showConfirmationText]);
8787

8888
return (
8989
<div className={`${classNames ? `usda-share-icon${disabledClass} ${classNames}` : `usda-share-icon${disabledClass}`}`}>

dist/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/1051.4ffb149e.iframe.bundle.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

docs/1051.70b999ac.iframe.bundle.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/1057.bf076e2c.iframe.bundle.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/1057.ed445d75.iframe.bundle.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

docs/1294.0f4be67e.iframe.bundle.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/1294.13fcf4b4.iframe.bundle.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

docs/1575.08fe834b.iframe.bundle.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)