diff --git a/client/src/components/Level.tsx b/client/src/components/Level.tsx index 898955a..d5e23cb 100644 --- a/client/src/components/Level.tsx +++ b/client/src/components/Level.tsx @@ -248,9 +248,6 @@ function PlayableLevel({worldId, levelId}) {
{commandLineMode && } - - { setCommandLineMode(!commandLineMode) }} />} label="Editor mode" /> -
@@ -307,17 +304,21 @@ function LevelAppBar({isLoading, levelId, worldId, levelTitle}) { const gameId = React.useContext(GameIdContext) const gameInfo = useGetGameInfoQuery({game: gameId}) + const { commandLineMode, setCommandLineMode } = React.useContext(InputModeContext) + return
- - - {gameInfo.data?.worlds.nodes[worldId].title && `World: ${gameInfo.data?.worlds.nodes[worldId].title}`} - -
+ + + {gameInfo.data?.worlds.nodes[worldId].title && `World: ${gameInfo.data?.worlds.nodes[worldId].title}`} + +
{levelTitle} +