Copy directly to clipboard

in #utopian-io9 years ago (edited)

** Try it out right here^^^. Click "copy short-link"
Link to PR is here

This is the last of my recent bug bashes for the Utopian.io frontend in order to get more familiar with the codebase.

This solves the issue of the Copy Short Link not acting the way users expect. With this pull request, when a user hits the Copy Short Link text, the text will be automatically copied to their clipboard through the use of react-copy-to-clipboard. It also shows some feedback that lets the user know the text was copied which lasts for two seconds.

Note that with the added react-copy-to-clipboard dependency you will need to run npm install for this to work.

out

And proof of work below:
image.png



Posted on Utopian.io - Rewarding Open Source Contributors

Sort:  

Hey @walnut1 I am @utopian-io. I have just upvoted you!

Achievements

  • You have less than 500 followers. Just gave you a gift to help you succeed!
  • Seems like you contribute quite often. AMAZING!

Community-Driven Witness!

I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!

mooncryption-utopian-witness-gif

Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x

Bagus tetorialnya..👍

Thank you for the contribution. It has been approved.

Nice add-on feature!

You can contact us on Discord.
[utopian-moderator]

Coin Marketplace

STEEM 0.04
TRX 0.33
JST 0.104
BTC 63427.77
ETH 1877.48
USDT 1.00
SBD 0.37