Skip to content

Commit

Permalink
img-link-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pemba1s1 committed Feb 13, 2024
1 parent 612d332 commit d539991
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion client/src/components/profile/EditProfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export default function EditProfile() {
{loading ? <><center><h1>Loading...</h1></center></> :
<>
<div className="item" style={{paddingTop:"70px"}}>
<img src={`/file/${user.avatar}`} alt="Profile Pic" className="profile-pic"/>
<img src={`${process.env.REACT_APP_API_URL}/file/${user.avatar}`} alt="Profile Pic" className="profile-pic"/>
<br/>
<ImgCrop >
<Upload style={{width:"100%"}} maxCount={1} accept=".jpg, .png, .jpeg" name="file" customRequest={submitFile} showUploadList={false}>
Expand Down
2 changes: 1 addition & 1 deletion client/src/components/profile/Profile.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export default function Profile() {
className="litem"
key={item._id}
extra={
<img src={`/file/${item.photo}`} alt="logo" className="img"/>
<img src={`${process.env.REACT_APP_API_URL}/file/${item.photo}`} alt="logo" className="img"/>
}
>
<List.Item.Meta
Expand Down

0 comments on commit d539991

Please sign in to comment.