safe-react
safe-react copied to clipboard
Refactor CreateSafe and LoadSafe components
Overview
Create Safe and Load Safe currently manage their internal form state of owners
differently. This should be streamlined to improve maintainability.
Differences between create and load
- Different titles and copy
- Only when creating, owners can be added and threshold changed
Otherwise the two flows are identical.
Goals
-
FIELD_SAFE_OWNERS_LIST
andFIELD_SAFE_OWNER_LIST
have the same name, structure and data handling -
FIELD_MAX_OWNER_NUMBER
is removed as it is not used
@usame-algan, I would highly recommend a cleanup of the data handling of owners
whilst doing this as well. The structure of Final Form is very confusing.
@usame-algan, I would highly recommend a cleanup of the data handling of
owners
whilst doing this as well. The structure of Final Form is very confusing.
Agreed! I extended the Goals so we can take care of the data handling of owners
as well