Refactor input and button to validate key to its own components

This commit refactors the <input> and <button> used to validate the MSS
key to its own components. After doing this, we will be able to reuse
this components outside of the settings app. In particular, we want to
be able to use it in the welcome wizard app.

It also implements one small change to the verify button that is part of
the changes related to the welcome wizard. Now the verify button is
disabled when the MSS key <input> is empty.

[MAILPOET-4818]
This commit is contained in:
Rodrigo Primo
2023-01-20 16:19:55 -03:00
committed by Aschepikov
parent 110b67bd9c
commit e1e690ad14
7 changed files with 156 additions and 99 deletions

View File

@@ -104,9 +104,9 @@
{
// this violation has been added by a formed employee and we don't know how that works any more, so ignore
"files": [
"assets/js/src/common/premium_key/key_activation_button.tsx",
"assets/js/src/settings/pages/advanced/reinstall.tsx",
"assets/js/src/settings/pages/advanced/recalculate_subscriber_score.tsx",
"assets/js/src/settings/pages/key_activation/key_activation.tsx",
"assets/js/src/settings/pages/send_with/other/activate_or_cancel.tsx",
"assets/js/src/settings/pages/send_with/send_with_choice.tsx"
],