Skip to content
This repository has been archived by the owner on Oct 3, 2023. It is now read-only.

Commit

Permalink
作品詳細、画像を表示できるようにする
Browse files Browse the repository at this point in the history
  • Loading branch information
calmery committed Feb 24, 2021
1 parent e8f20bd commit 8b331ec
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/components/Exhibition/3d/Work.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,14 @@ export const Exhibition3dWork = React.memo<
css={view}
>
{mode === "2d" && (
<img className="h-full object-contain w-full" src={imageUrl} />
<img
className="h-full object-contain w-full"
src={`${
(process.env.NODE_ENV === "production"
? "https://assets.metaneno.art"
: "http://localhost:8000") + imageUrl
}`}
/>
)}
{mode === "3d" && (
<Exhibition3dCanvas>
Expand Down Expand Up @@ -181,7 +188,7 @@ export const Exhibition3dWork = React.memo<
</div>
<div css={column}>
<div css={commentTitle}>コメント</div>
<div>{comment}</div>
<div className="whitespace-pre-line">{comment}</div>
</div>
</div>
</div>
Expand Down

0 comments on commit 8b331ec

Please sign in to comment.