-
-
Notifications
You must be signed in to change notification settings - Fork 267
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(suite-native): Add coin behind feature flag #11332
Conversation
👍 Dependency issues cleared. Learn more about Socket for GitHub ↗︎ This PR previously contained dependency changes with security issues that have been resolved, removed, or ignored. |
Tested on emulator and works as expected. |
/rebase |
18d2df3
to
1b1854c
Compare
suite-native/accounts/src/components/SearchableAccountsListScreenHeader.tsx
Outdated
Show resolved
Hide resolved
|
||
export const AddAccountButton = () => { | ||
const isSelectedDevicePortfolioTracker = useSelector(selectIsPortfolioTrackerDevice); | ||
const [isAddCoinAccountEnabled] = useFeatureFlag(FeatureFlag.IsAddCoinAccountEnabled); | ||
const [isDeviceConnectEnabled] = useFeatureFlag(FeatureFlag.IsDeviceConnectEnabled); |
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.
Why you don't use this feature flag inside of isAddCoinAccountEnabled, these two are closely tied and there will never be adding of new account without device
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.
The way feature flags are written now, I cant use IsDeviceConnectEnabled setting as a base for IsAddCoinAccountEnabled.
And we will probably remove IsAddCoinAccountEnabled flag in next release anyway and only use IsDeviceConnectEnabled.
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.
It is there only to hide it for the release and still let qa and us to test it
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.
Just simply create hook which will use both of these flags
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.
@SocketSecurity ignore-all |
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.
👌
/rebase |
d7ea06e
to
96631c5
Compare
/rebase |
2e309f9
to
9e31005
Compare
Hides Add Account functionality by disabling ( + ) button and choosing correct flow on tap
Related Issue
Resolve #11295