1 line
2.8 KiB
JavaScript
1 line
2.8 KiB
JavaScript
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[635],{64168:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/users",function(){return r(45446)}])},45446:function(e,t,r){"use strict";r.r(t),r.d(t,{__N_SSP:function(){return f},default:function(){return y}});var n=r(85893),s=r(67294),a=r(5606),i=r(60705),c=r(21147),u=r(94495),d=r(53151),l=r(88584),o=r(94655),x=r(3668),m=r(60);function g(){let{pageProps:e}=(0,s.useContext)(a.AppContext),{deployment_users:t}=e;return(0,n.jsx)(m.Z,{className:"grid-cell-content",children:null==t?void 0:t.map((e,t)=>{let r=!!e.is_super_admin;return(0,n.jsx)("a",{href:"/admin/users/".concat(e.id),children:(0,n.jsxs)(o.Z,{className:"w-full justify-between",children:[(0,n.jsxs)(o.Z,{children:[(0,n.jsx)(d.Z,{image_url:e.image,title:"".concat(e.first_name," Image"),image_size:40}),(0,n.jsxs)(x.Z,{children:[e.first_name," ",e.last_name]})]}),(0,n.jsx)(o.Z,{children:r?(0,n.jsx)(l.Z,{children:"Super Admin"}):null})]})},t)})})}function h(){let{pageProps:e}=(0,s.useContext)(a.AppContext);return(0,n.jsxs)(s.Fragment,{children:[(0,n.jsx)(c.Z,{title:"Users",description:(0,n.jsx)(n.Fragment,{children:"All Users in this deployment"}),ctas:(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(u.Z,{title:"Add User",href:"/admin/users/add-user",children:"Add User"})})}),(0,n.jsx)(i.Z,{}),(0,n.jsx)(g,{})]})}var p=r(89350),f=!0;function y(){return(0,n.jsx)(p.Z,{children:(0,n.jsx)(h,{})})}},88584:function(e,t,r){"use strict";r.d(t,{Z:function(){return a}});var n=r(85893);r(67294);var s=r(98388);function a(e){let{color:t,variant:r,children:a,href:i,newTab:c,linkProps:u,...d}=e,l=(0,n.jsx)("div",{...d,className:(0,s.m6)("text-xs px-2 py-0.5 rounded-full outline-0","text-center flex items-center justify-center","secondary"==t?"bg-secondary text-white outline-secbg-secondary":"success"==t?"bg-success outline-success text-white":"error"==t?"bg-orange-700 outline-orange-700":"gray"==t?(0,s.m6)("bg-slate-100 outline-slate-200 dark:bg-gray-dark dark:outline-gray-dark","text-slate-800 dark:text-white"):"bg-primary text-white outline-primbg-primary twui-tag-primary","outlined"==r?"!bg-transparent outline-1 "+("secondary"==t?"text-secondary":"success"==t?"text-success dark:text-success-dark":"error"==t?"text-orange-700":"gray"==t?"text-slate-700 dark:text-white/80":"text-primary dark:text-primary-dark twui-tag-primary-outlined"):"ghost"==r?"!bg-transparent outline-none border-none "+("secondary"==t?"text-secondary":"success"==t?"text-success dark:text-success-dark":"error"==t?"text-orange-700":"gray"==t?"text-slate-700 dark:text-white/80":"text-primary dark:text-primary-dark"):"","twui-tag",d.className),children:a});return i?(0,n.jsx)("a",{href:i,target:c?"_blank":void 0,...u,className:(0,s.m6)("hover:opacity-80",null==u?void 0:u.className),children:l}):l}}},function(e){e.O(0,[662,75,664,433,7,242,888,774,179],function(){return e(e.s=64168)}),_N_E=e.O()}]); |