-
Notifications
You must be signed in to change notification settings - Fork 176
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
profile: display balance breakdown #534
Merged
Merged
Changes from 21 commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
1782d8d
profile: show balance breakdown
Patrick1904 ff900b9
prevent user from sending/signing above available balance amount
Patrick1904 5c33ebf
locked + amount = totalBalance
Patrick1904 075f5f8
profile: add info popup to 'available balance'
Patrick1904 a0f68e4
Add tooltip info to available and min balance
Patrick1904 462fa43
update min. balance copy
Patrick1904 b28d54f
add state stake amount
Patrick1904 c7e2ded
fix env variable
Patrick1904 d4bdf70
user balance: cleanup
Patrick1904 694b50a
Merge remote-tracking branch 'origin/master' into locked-balance
Patrick1904 bf7f1f1
Fetch account balance breakdown from near-api-js
Patrick1904 53bee9b
Change name of action, since the same name is used in wallet method (…
marcinbodnar 5cf8ee6
Refactor refreshAccountExternal action (#481)
marcinbodnar ffdeb81
Add balance to refreshAccountExternal action (#481)
marcinbodnar f4c319d
Show balance from redux state on Profile (#481)
marcinbodnar b82a05e
Dispatch refreshAccountExternal for external accountId only (#481)
marcinbodnar 6189b55
Refactor loadRecoveryMethods and create separate wallet method (#580)
marcinbodnar c64bbd8
RecoveryContainer take recovery methods from redux state (#580)
marcinbodnar d056e5a
Fix lint warnings
marcinbodnar b339ebd
Fix typo (#481)
marcinbodnar 21a8e48
Send Money: Available Balance info stays while typing (#481)
marcinbodnar 39af2df
remove nearlib dependency (#481)
marcinbodnar 3a83e07
Change from nearlib to nearApiJs (#481)
marcinbodnar File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
import React from 'react' | ||
import styled from 'styled-components' | ||
import { Popup } from 'semantic-ui-react' | ||
import InfoIcon from '../svg/InfoIcon.js' | ||
|
||
const Trigger = styled.div` | ||
height: 20px; | ||
width: 20px; | ||
display: inline-block; | ||
margin-left: 5px; | ||
|
||
svg { | ||
height: 20px; | ||
width: 20px; | ||
fill: #F8F8F8; | ||
|
||
circle { | ||
:first-of-type { | ||
stroke: none; | ||
} | ||
:last-of-type { | ||
stroke: #b5b5b5; | ||
fill: #b5b5b5; | ||
} | ||
} | ||
|
||
line { | ||
stroke: #b5b5b5; | ||
} | ||
} | ||
|
||
` | ||
|
||
const InfoPopup = ({ | ||
content, | ||
position = 'top center' | ||
}) => ( | ||
<Popup | ||
content={content} | ||
trigger={<Trigger className='trigger'><InfoIcon/></Trigger>} | ||
position={position} | ||
/> | ||
) | ||
|
||
export default InfoPopup |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nearlib
should be removed