Skip to content

Commit

Permalink
Merge pull request #678 from dali-lab/blog-posts-admin-panel
Browse files Browse the repository at this point in the history
fix: add api url to image path in blog edit
  • Loading branch information
wu-ciesielska authored Nov 24, 2023
2 parents 1c579e6 + e5d5a10 commit 4fcda56
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/screens/admin/components/blog-post-form/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ const BlogPostForm = (props) => {
/>
{typeof formData.image === 'string' && (
<div className="image-preview-container">
<img src={formData.image} alt="blog post illustration" />
<img src={`${global.API_URL}${formData.image}`} alt="blog post illustration" />
</div>
)}
</div>
Expand Down
1 change: 1 addition & 0 deletions src/screens/admin/components/blog-post-form/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@
height: 150px;
overflow: hidden;
position: relative;
border-radius: 10px;

img {
position: absolute;
Expand Down

0 comments on commit 4fcda56

Please sign in to comment.