add tmp option to test images

This commit is contained in:
Jon Eugster
2023-12-08 10:18:00 +01:00
parent 0a057913be
commit a1a6862b5a
2 changed files with 9 additions and 3 deletions
+3 -2
View File
@@ -214,7 +214,7 @@ function PlayableLevel({impressum, setImpressum}) {
const typewriterMode = useSelector(selectTypewriterMode(gameId))
const setTypewriterMode = (newTypewriterMode: boolean) => dispatch(changeTypewriterMode({game: gameId, typewriterMode: newTypewriterMode}))
const gameInfo = useGetGameInfoQuery({game: gameId})
const gameInfo = useGetGameInfoQuery({game: gameId})
const level = useLoadLevelQuery({game: gameId, world: worldId, level: levelId})
// The state variables for the `ProofContext`
@@ -488,7 +488,8 @@ function Introduction({impressum, setImpressum}) {
<IntroductionPanel gameInfo={gameInfo} />
<div className="world-image-container empty">
{image &&
<img src={path.join("data", gameId, image)} alt="" />
// TODO: Temporary for testing
<img className={worldId=="Proposition" ? "cover" : "contain"} src={path.join("data", gameId, image)} alt="" />
}
</div>