1(this.webpackJsonpfrontend=this.webpackJsonpfrontend||[]).push([[59],{503:function(e,t,c){"use strict";c.r(t);var n=c(1),r=c(23),s=c(193),a=c(104),i=c(41),j=c(76),d=c(87),l=c(285),b=c(194),o=c(14),h=c(10),O=c(19),x=c(16),u=c(37),m=c(0);t.default=function(e){var t=e.history,c=Object(h.b)(),f=Object(h.c)((function(e){return e.userList})),p=f.loading,k=f.error,N=f.users,g=Object(h.c)((function(e){return e.userLogin})).userInfo,v=Object(h.c)((function(e){return e.userDelete})).success;Object(n.useEffect)((function(){g?c(Object(u.p)()):t.push("/login")}),[c,t,g,v]);return Object(m.jsx)(m.Fragment,{children:Object(m.jsxs)(s.a,{className:"content",children:[Object(m.jsxs)(a.a,{md:{span:3,order:1},lg:{span:3,order:1},children:[Object(m.jsxs)(i.a,{className:"text-center",border:"primary",children:[Object(m.jsxs)(i.a.Body,{children:[Object(m.jsx)(i.a.Title,{children:Object(m.jsx)(j.a,{variant:"outline-info",block:!0,children:Object(m.jsx)(r.LinkContainer,{to:"/",children:Object(m.jsx)(d.a.Link,{children:"Dashboard"})})})}),Object(m.jsx)(i.a.Title,{children:Object(m.jsx)(j.a,{variant:"outline-info",block:!0,children:Object(m.jsx)(r.LinkContainer,{to:"/dashboardScreen",children:Object(m.jsx)(d.a.Link,{children:"DashboardScreen"})})})}),Object(m.jsx)(i.a.Title,{children:Object(m.jsx)(j.a,{variant:"outline-info",block:!0,children:Object(m.jsx)(r.LinkContainer,{to:"/dashboard",children:Object(m.jsx)(d.a.Link,{children:"Dashboard"})})})}),Object(m.jsx)(i.a.Title,{children:Object(m.jsx)(j.a,{variant:"outline-info",block:!0,children:"Committees"})})]}),Object(m.jsx)(i.a.Footer,{className:"text-muted",children:Object(m.jsx)(o.Link,{className:"btn btn-outline-warning btn-sm btn-block my-5 rounded",to:"",children:"another button"})})]})," "]}),Object(m.jsx)(a.a,{md:{span:9,order:12},lg:{span:9,order:12},id:"page-content-wrapper",children:Object(m.jsxs)(i.a,{className:"text-center",border:"primary",children:[Object(m.jsx)(i.a.Header,{as:"h2",children:"Users"}),Object(m.jsx)(i.a.Body,{children:p?Object(m.jsx)(x.a,{}):k?Object(m.jsx)(O.a,{variant:"danger",children:k}):Object(m.jsxs)(l.a,{striped:!0,bordered:!0,hover:!0,responsive:!0,className:"table-sm",children:[Object(m.jsx)("thead",{children:Object(m.jsxs)("tr",{children:[Object(m.jsx)("th",{children:"ID"}),Object(m.jsx)("th",{children:"IMAGE"}),Object(m.jsx)("th",{children:"NAME"}),Object(m.jsx)("th",{children:"EMAIL"}),Object(m.jsx)("th",{children:"ADMIN"}),g&&"admin"===g.userRole&&Object(m.jsx)("th",{children:"EDIT/DELETE"})]})}),Object(m.jsx)("tbody",{children:N.map((function(e){return Object(m.jsxs)("tr",{children:[Object(m.jsx)("td",{children:e.userId}),Object(m.jsxs)("td",{children:[" ",Object(m.jsx)(b.a,{src:e.image,thumbnail:!0})]}),Object(m.jsxs)("td",{children:[" ",e.userName]}),Object(m.jsx)("td",{children:Object(m.jsxs)("a",{href:"mailto: ".concat(e.email),children:[" ",e.email]})}),Object(m.jsx)("td",{children:"admin"===e.userRole?Object(m.jsx)("i",{className:"fas fa-check",style:{color:"green"}}):Object(m.jsx)("i",{className:"fas fa-times",style:{color:"red"}})}),"admin"===g.userRole&&Object(m.jsxs)("td",{children:[Object(m.jsx)(r.LinkContainer,{to:"/users/".concat(e.userId,"/edit"),children:Object(m.jsx)(j.a,{variant:"light",className:"btn-sm",children:Object(m.jsx)("i",{className:"fas fa-edit"})})}),Object(m.jsx)(j.a,{variant:"danger",className:"btn-sm",onClick:function(){return t=e.id,void(window.confirm("Are You Sure?")&&c(Object(u.f)(t)));var t},children:Object(m.jsx)("i",{className:"fas fa-trash"})})]})]},e.userId)}))})]})})]})})]})})}}}]); 2//# sourceMappingURL=59.f5018e60.chunk.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.