-
Notifications
You must be signed in to change notification settings - Fork 147
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
feat: credential list footer component injectable #1266
feat: credential list footer component injectable #1266
Conversation
Signed-off-by: fc-santos <[email protected]>
Signed-off-by: fc-santos <[email protected]>
Quality Gate passedIssues Measures |
The credential list screen also has an "add credential" button "represented by a "+" icon at the top right corner in the header. Does this PR take into account that button? I see in the screen posted above that that button is replaced with a "help" button. |
@knguyenBC the "add credential button" represented by a "+" icon at the top right corner can either be replaced by another component or removed. This component can be injected at the container level (by the default, it's null). For example: //container-impl.ts
// By default at bifold-wallet
this._container.registerInstance(TOKENS.COMPONENT_CRED_LIST_HEADER_RIGHT, () => null)
// In bc-wallet
this._container.registerInstance(TOKENS.COMPONENT_CRED_LIST_HEADER_RIGHT, AddCredentialButton)
// In qc-wallet
this._container.registerInstance(TOKENS.COMPONENT_CRED_LIST_HEADER_RIGHT, HelpCenterButton) Nothing needs to be changed after this PR is merged in other wallets (no impact). |
…ion#1266) Signed-off-by: fc-santos <[email protected]>
…ion#1266) Signed-off-by: fc-santos <[email protected]> Signed-off-by: al-rosenthal <[email protected]>
Summary of Changes
This PR adds a new option to add a ListFooterComponent to the ListCredentials Screen in the FlatList. This option would for example allow other wallets to add a button in the footer of the list. Example:
Related Issues
N/A
Pull Request Checklist
Tick all boxes below to demonstrate that you have completed the respective task. If the item does not apply to your this PR check it anyway to make it apparent that there's nothing to do.
Signed-off-by
line (we use the DCO GitHub app to enforce this);If you have any questions to any of the points above, just submit and ask! This checklist is here to help you, not to deter you from contributing!
Pro Tip 🤓
PR template adapted from the Python attrs project.