Skip to content
This repository has been archived by the owner on Mar 23, 2023. It is now read-only.

feat: add address format component #2072

Merged
merged 2 commits into from
Jun 9, 2020
Merged

Conversation

goga-m
Copy link
Contributor

@goga-m goga-m commented Jun 9, 2020

Summary

Small component to format Wallet Name and Address strings

  • truncates address and adds dots in the middle e.g ASuusXSW9kfW...ttP6T9GQ3kqT
  • optionally renders wallet Name (adjusting colors)
  • accepts maxChars to adjust truncation length.

Seen in Wallet cards, Wallet lists, and Transactions lists

Checklist

  • Documentation (if necessary)
  • Tests (if necessary)
  • Ready to be merged

@goga-m goga-m requested a review from faustbrian as a code owner June 9, 2020 15:30
@ghost ghost added Complexity: Medium Less than 256 lines changed. Type: Feature The issue is a request for new functionality. labels Jun 9, 2020
@codecov
Copy link

codecov bot commented Jun 9, 2020

Codecov Report

Merging #2072 into 3.0-react will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff             @@
##           3.0-react     #2072   +/-   ##
===========================================
  Coverage     100.00%   100.00%           
===========================================
  Files             43        45    +2     
  Lines            286       298   +12     
  Branches          46        49    +3     
===========================================
+ Hits             286       298   +12     
Impacted Files Coverage Δ
src/app/components/Circle/Circle.tsx 100.00% <ø> (ø)
src/app/components/Address/Address.tsx 100.00% <100.00%> (ø)
src/app/components/Address/utils.ts 100.00% <100.00%> (ø)
src/app/components/Circle/style.ts 100.00% <100.00%> (ø)
src/app/components/Input/InputPassword.tsx 100.00% <100.00%> (ø)
src/app/components/Modal/Modal.tsx 100.00% <100.00%> (ø)
...ins/wallets/components/SignMessage/SignMessage.tsx 100.00% <100.00%> (ø)
... and 2 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 71d9feb...b4b452c. Read the comment docs.

@faustbrian faustbrian merged commit 0bb558f into 3.0-react Jun 9, 2020
@ghost ghost deleted the feat/component-address branch June 9, 2020 15:42
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Complexity: Medium Less than 256 lines changed. Type: Feature The issue is a request for new functionality.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants