From 741674f4e44392f6a61b5df8d9a8a22a787d21f0 Mon Sep 17 00:00:00 2001 From: Amine Ben hammou Date: Mon, 13 Apr 2020 07:56:59 +0200 Subject: [PATCH] Add AmazonSES fields [MAILPOET-2693] --- .../send_with/other/amazon_ses_fields.tsx | 47 +++++++++++++++++++ .../send_with/other/other_sending_methods.tsx | 2 + 2 files changed, 49 insertions(+) create mode 100644 assets/js/src/settings/pages/send_with/other/amazon_ses_fields.tsx diff --git a/assets/js/src/settings/pages/send_with/other/amazon_ses_fields.tsx b/assets/js/src/settings/pages/send_with/other/amazon_ses_fields.tsx new file mode 100644 index 0000000000..fd992b5f2b --- /dev/null +++ b/assets/js/src/settings/pages/send_with/other/amazon_ses_fields.tsx @@ -0,0 +1,47 @@ +import React from 'react'; +import { Label, Inputs } from 'settings/components'; +import { t, onChange } from 'common/functions'; +import { useSetting } from 'settings/store/hooks'; +import SendingFrequency from './sending_frequency'; + +export default function AmazonSesFields() { + const [region, setRegion] = useSetting('mta', 'region'); + const [accessKey, setAccessKey] = useSetting('mta', 'access_key'); + const [secretKey, setSecretKey] = useSetting('mta', 'secret_key'); + return ( + <> + +