fix: No reason for 'Enable' switch on 'Wallet Settings' panel (#439)
* fix: remove the "enable" toggle fix: make edit available at all times and make it toggle the wizard if the coin config is empty fix: disable focus on the first edit feat: open the coin config wizard when adding a not configured coin on locales * fix: set default value for focusOnEditWhen to avoid breaking tables first field focus refactor: replaced relative path imports from outside the module with full paths fix: removed console.log * fix: changed the edit override logic to a cleaner one * fix: trigger the wizard only when the coin isn't configured
This commit is contained in:
parent
363e69402d
commit
92eebd630e
5 changed files with 67 additions and 26 deletions
|
|
@ -46,6 +46,8 @@ const ETable = ({
|
|||
disableAdd,
|
||||
initialValues,
|
||||
setEditing,
|
||||
shouldOverrideEdit,
|
||||
editOverride,
|
||||
stripeWhen,
|
||||
disableRowEdit,
|
||||
groupBy,
|
||||
|
|
@ -93,6 +95,7 @@ const ETable = ({
|
|||
}
|
||||
|
||||
const onEdit = it => {
|
||||
if (shouldOverrideEdit && shouldOverrideEdit(it)) return editOverride(it)
|
||||
setEditingId(it)
|
||||
setEditing && setEditing(it, true)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue