Files
aso/public/client-portal/assets/UserProfile.83beb8d3.js
Linksehat Staging Server 4135da3103 client portal build
2024-01-01 01:58:18 +07:00

2 lines
1.1 KiB
JavaScript

import{P as d}from"./Page.f00bcef1.js";import{a2 as p,o as f,r as a,Z as u,aC as x,$ as h,j as t,f as o,a4 as g,S as C,T as P}from"./index.4f61bfb1.js";import{C as S,a as I}from"./CardFamilyInformation.333b7ee6.js";import{d as j}from"./ArrowBackIos.891f2fd7.js";import{G as s}from"./Grid.c1e049cd.js";import"./Close.08d0b6dc.js";import"./jsx-runtime_commonjs-proxy.6387488a.js";import"./Card.08e30663.js";import"./TextField.4a80d643.js";import"./SwitchBase.1ec49b3e.js";function E(){const{themeStretch:i}=p(),n=f(),[r,m]=a.exports.useState(),{corporateValue:c}=a.exports.useContext(u),{id:l}=x();return a.exports.useEffect(()=>{h.get(c+"/members/"+l).then(e=>{m(e.data)}).catch(e=>{console.error(e)})},[]),t(d,{title:"Profile",children:o(g,{maxWidth:i?!1:"xl",children:[o(C,{direction:"row",alignItems:"center",sx:{marginBottom:3},children:[t(j,{sx:{cursor:"pointer"},onClick:()=>n(-1)}),t(P,{variant:"h5",sx:{marginLeft:2},children:"Profile"})]}),r?o(s,{container:!0,spacing:2,children:[t(s,{item:!0,xs:12,md:12,children:t(S,{data:r})}),t(s,{item:!0,xs:12,md:12,children:t(I,{data:r})})]}):""]})})}export{E as default};