Browse Source

update url image

pull/1/head
wahyun 6 months ago
parent
commit
51d33a6325
  1. 2
      src/views/SimproV2/Settings/DialogForm.js
  2. 4
      src/views/SimproV2/Settings/components/MyProfile/Index.js

2
src/views/SimproV2/Settings/DialogForm.js

@ -323,7 +323,7 @@ const DialogForm = ({
<img
src={
imageProfile ? (
`${BASE_SIMPRO_LUMEN_IMAGE_COMPANY(imageProfile?.image, role != 'Super Admin' ? configApp.company_name : 'undifined')}`
`${BASE_SIMPRO_LUMEN_IMAGE_COMPANY(imageProfile?.image, role != 'Super Admin' ? configApp?.company_name : 'undifined', moment(imageProfile?.created_at).format('YYYY-MM') )}`
) : profile
}
style={{ maxWidth: "100%" }}

4
src/views/SimproV2/Settings/components/MyProfile/Index.js

@ -254,7 +254,7 @@ const Index = () => {
<div className={stylesHead.img} style={{ cursor:imageProfile ? 'pointer' : '' }} onClick={imageProfile ? () => handleImageClick() : ''}>
<img className={stylesHead.obejct11} src={
imageProfile ? (
`${BASE_SIMPRO_LUMEN_IMAGE_COMPANY(imageProfile?.image, role != 'Super Admin' ? configApp.company_name : 'undifined')}`
`${BASE_SIMPRO_LUMEN_IMAGE_COMPANY(imageProfile?.image, role != 'Super Admin' ? configApp?.company_name : 'undifined', moment(imageProfile?.created_at).format('YYYY-MM'))}`
) : profile
} />
</div>
@ -416,7 +416,7 @@ const Index = () => {
<img
src={
imageProfile ? (
`${BASE_SIMPRO_LUMEN_IMAGE_COMPANY(imageProfile?.image, role != 'Super Admin' ? configApp.company_name : 'undifined')}`
`${BASE_SIMPRO_LUMEN_IMAGE_COMPANY(imageProfile?.image, role != 'Super Admin' ? configApp?.company_name : 'undifined', moment(imageProfile?.created_at).format('YYYY-MM'))}`
) : profile
}
style={{ maxWidth: "100%" }}

Loading…
Cancel
Save