diff options
| author | Armand Philippot <git@armandphilippot.com> | 2022-03-24 15:02:39 +0100 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2022-03-24 15:02:39 +0100 |
| commit | ef15022857409312e2b26585ba194f9838bf1262 (patch) | |
| tree | 4db2b9cb28eb823a1aacb10eaecc41c4964e5869 /src/components/ContactForm/ContactForm.tsx | |
| parent | 8bb3431fc1c545643511e586e6fa7218521b716f (diff) | |
| parent | 9226671f49b507ce6f71e6e2c3621014f05f74e9 (diff) | |
refactor: replace babel with swc
The build time will be faster with SWC.
Diffstat (limited to 'src/components/ContactForm/ContactForm.tsx')
| -rw-r--r-- | src/components/ContactForm/ContactForm.tsx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/components/ContactForm/ContactForm.tsx b/src/components/ContactForm/ContactForm.tsx index 48772a0..5af6982 100644 --- a/src/components/ContactForm/ContactForm.tsx +++ b/src/components/ContactForm/ContactForm.tsx @@ -34,6 +34,7 @@ const ContactForm = () => { defaultMessage: 'Warning: mail not sent. Some required fields are empty.', description: 'ContactForm: missing fields message.', + id: 'WpycgB', }) ); return; @@ -57,6 +58,7 @@ const ContactForm = () => { defaultMessage: 'Thanks. Your message was successfully sent. I will answer it as soon as possible.', description: 'ContactForm: success message', + id: 'gQKeF+', }) ); resetForm(); @@ -64,6 +66,7 @@ const ContactForm = () => { const errorPrefix = intl.formatMessage({ defaultMessage: 'An error occurred:', description: 'ContactForm: error message', + id: 'pTxT7N', }); const error = `${errorPrefix} ${mail.message}`; setStatus('error'); @@ -94,21 +97,25 @@ const ContactForm = () => { const nameLabelBody = intl.formatMessage({ defaultMessage: 'Name', description: 'ContactForm: name field label', + id: '6ibqFS', }); const emailLabelBody = intl.formatMessage({ defaultMessage: 'Email', description: 'ContactForm: email field label', + id: 'Vuryko', }); const subjectLabelBody = intl.formatMessage({ defaultMessage: 'Subject', description: 'ContactForm: subject field label', + id: 'uMURuJ', }); const messageLabelBody = intl.formatMessage({ defaultMessage: 'Message', description: 'ContactForm: message field label', + id: '0zBQpa', }); return ( @@ -160,6 +167,7 @@ const ContactForm = () => { {intl.formatMessage({ defaultMessage: 'Send', description: 'ContactForm: send button text', + id: 'X7n7N2', })} </ButtonSubmit> </FormItem> |
