ManageTokensController is UI-side component and shouldn't be used within stores. It's against the assumption that stores are only thin layer exposing backend models/properties/methods. In practice it makes testing and using components in storybook problematic because stores are not available then.
Description
ManageTokensController
is UI-side component and shouldn't be used within stores. It's against the assumption that stores are only thin layer exposing backend models/properties/methods. In practice it makes testing and using components in storybook problematic because stores are not available then.When token management data is exposed via models: https://github.com/status-im/status-desktop/issues/14936 https://github.com/status-im/status-desktop/issues/14937
And main wallet's view are using them directly:
https://github.com/status-im/status-desktop/issues/14939 https://github.com/status-im/status-desktop/issues/14941
It should be easy to remove
ManageTokensController
s from stores and keep them as dirty state management component locally withinManageTokensView
.