diff --git a/app/javascript/bundles/Container/components/MailingList.js b/app/javascript/bundles/Container/components/MailingList.js index 1153f21c..c30a27ed 100644 --- a/app/javascript/bundles/Container/components/MailingList.js +++ b/app/javascript/bundles/Container/components/MailingList.js @@ -1,62 +1,21 @@ import React from "react"; import $ from "jquery"; -{ - /* - */ -} - class MailingList extends React.Component { constructor(props) { super(props); this.state = { emailValue: "", - fNameValue: "", - lNameValue: "" }; } - onSubmit() { - preventDefault(); - - $.ajax({ - type: $form.attr("method"), - url: $form.attr("action"), - data: $form.serialize(), - cache: false, - dataType: "json", - contentType: "application/json; charset=utf-8", - error: function(err) { - $(".notification_container").html( - 'Could not connect to server. Please try again later.' - ); - }, - success: function(data) { - if (data.result != "success") { - var message = data.msg.substring(); - $(".notification_container").html( - '' + message + "" - ); - } else { - var message = data.msg; - $(".notification_container").html( - '' + message + "" - ); - } - } - }); - } - render() { return (