-
Notifications
You must be signed in to change notification settings - Fork 15
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: Add custom transactions action card #3849
Feat: Add custom transactions action card #3849
Conversation
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.
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.
if (!isFeatureFlagArbitraryTxsEnabled) { | ||
const arbitraryTxsIndex = actionsListOptions[4].options.findIndex( | ||
({ value }) => value === Action.ArbitraryTxs, | ||
); | ||
|
||
actionsListOptions[4].options.splice(arbitraryTxsIndex, 1); |
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.
To remove the hardcoded array index, how about using array spread to dynamically add arbitrary transactions to the options array?
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.
Shows up as expected. Nicely done!
Description
This PR adds the custom transactions card to the manage colony drawer and updates it in the action select dropdown.
Figma file: https://www.figma.com/design/l1dOM5qiQYwF0ElvKDqqjg/Design-System---Colony-v3?node-id=6111-2669&t=49uR3c8BmTwlpEbS-4
Testing
Diffs
New stuff ✨
Changes 🏗
Resolves #3844