text: (this["webpackJsonpgoit-react-hw-08-phonebook"]=this["webpackJsonpgoit-react-hw-08-phonebook"]||[]).push([[1],{100:function(e,a,t){e.exports={container:"LoginPage_container__BEy7w",title:"LoginPage_title__IuLII",form:"LoginPage_form__3d5j1",label:"LoginPage_label__247o-",input:"LoginPage_input__28oJb",btn:"LoginPage_btn__2rOvq",text:"LoginPage_text__2st-F",link:"LoginPage_link__38akG"}},104:function(e,a,t){"use strict";t.r(a);var n=t(39),s=t(0),i=t(12),l=t(8),o=t(9),c=t(100),r=t.n(c),b=t(2);a.default=function(){var e=Object(s.useState)(""),a=Object(n.a)(e,2),t=a[0],c=a[1],u=Object(s.useState)(""),g=Object(n.a)(u,2),j=g[0],m=g[1],p=Object(l.b)(),_=function(e){var a=e.target,t=a.name,n=a.value;switch(t){case"email":return c(n);case"password":return m(n);default:return}};return Object(b.jsxs)("div",{className:r.a.container,children:[Object(b.jsx)("h4",{className:r.a.title,children:"Please, enter your email and password"}),Object(b.jsxs)("form",{onSubmit:function(e){e.preventDefault(),""!==t&&""!==j?(p(o.a.logIn({email:t,password:j})),c(""),m("")):console.log("alert")},className:r.a.form,autoComplete:"off",children:[Object(b.jsxs)("label",{className:r.a.label,children:["Email",Object(b.jsx)("input",{className:r.a.input,type:"email",name:"email",value:t,onChange:_})]}),Object(b.jsxs)("label",{className:r.a.label,children:["Password",Object(b.jsx)("input",{className:r.a.input,type:"password",name:"password",value:j,onChange:_})]}),Object(b.jsx)("button",{type:"submit",className:r.a.btn,children:"Log in"}),Object(b.jsxs)("span",{className:r.a.text,children:["or"," ",Object(b.jsx)(i.b,{to:"/register",className:r.a.link,children:"register a new profile"})]})]})]})}}}]);
  //# sourceMappingURL=login-page.010b5168.chunk.js.map