Skip to content

Commit

Permalink
shouldShow On Devel
Browse files Browse the repository at this point in the history
  • Loading branch information
danielferro69 committed Nov 15, 2023
1 parent 88f3685 commit ac51802
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ import { BlocksSelector, CategorizedToggle } from "./BlocksSelector";

export const ToolBoxEditor = () => {

const shouldShow = process.env.NODE_ENV !== 'production'

const { t } = useTranslation('creator');

const storageChallenge = LocalStorage.getCreatorChallenge()
Expand Down Expand Up @@ -60,7 +62,7 @@ export const ToolBoxEditor = () => {
<CategorizedToggle toolboxState={toolboxState} isCategorized={isCategorized} setIsCategorized={setIsCategorized}/>
<BlocksSelector toolboxState={toolboxState} setToolBoxItems={setToolBoxItems} toolBoxItems={toolBoxItems} availableBlocks={availableBlocksFor(challenge!.scene.type)}/>
</div>
<ToolboxPreview blocksToPreview={toolBoxItems} categorized={isCategorized || toolboxState.categorizationShouldBeForced()}/>
{shouldShow ? <ToolboxPreview blocksToPreview={toolBoxItems} categorized={isCategorized || toolboxState.categorizationShouldBeForced()}/>:<></>}
</Stack>
</GenericModalDialog>
</>
Expand Down

0 comments on commit ac51802

Please sign in to comment.