Skip to content

Commit 9c33bbb

Browse files
committed
remove TitledHOC from playground, and explicitly pass canEditTitle
1 parent b63ac51 commit 9c33bbb

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

src/playground/player.jsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import Box from '../components/box/box.jsx';
99
import GUI from '../containers/gui.jsx';
1010
import HashParserHOC from '../lib/hash-parser-hoc.jsx';
1111
import AppStateHOC from '../lib/app-state-hoc.jsx';
12-
import TitledHOC from '../lib/titled-hoc.jsx';
1312

1413
import {setPlayer} from '../reducers/mode';
1514

@@ -24,6 +23,7 @@ const Player = ({isPlayerOnly, onSeeInside, projectId}) => (
2423
<Box className={classNames(isPlayerOnly ? styles.stageOnly : styles.editor)}>
2524
{isPlayerOnly && <button onClick={onSeeInside}>{'See inside'}</button>}
2625
<GUI
26+
canEditTitle
2727
enableCommunity
2828
isPlayerOnly={isPlayerOnly}
2929
projectId={projectId}
@@ -55,8 +55,7 @@ const ConnectedPlayer = connect(
5555
// ability to compose reducers.
5656
const WrappedPlayer = compose(
5757
AppStateHOC,
58-
HashParserHOC,
59-
TitledHOC
58+
HashParserHOC
6059
)(ConnectedPlayer);
6160

6261
const appTarget = document.createElement('div');

src/playground/render-gui.jsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import {compose} from 'redux';
55
import AppStateHOC from '../lib/app-state-hoc.jsx';
66
import GUI from '../containers/gui.jsx';
77
import HashParserHOC from '../lib/hash-parser-hoc.jsx';
8-
import TitledHOC from '../lib/titled-hoc.jsx';
98
import log from '../lib/log.js';
109

1110
const onClickLogo = () => {
@@ -37,8 +36,7 @@ export default appTarget => {
3736
// ability to compose reducers.
3837
const WrappedGui = compose(
3938
AppStateHOC,
40-
HashParserHOC,
41-
TitledHOC
39+
HashParserHOC
4240
)(GUI);
4341

4442
// TODO a hack for testing the backpack, allow backpack host to be set by url param
@@ -67,6 +65,7 @@ export default appTarget => {
6765
// important: this is checking whether `simulateScratchDesktop` is truthy, not just defined!
6866
simulateScratchDesktop ?
6967
<WrappedGui
68+
canEditTitle
7069
isScratchDesktop
7170
showTelemetryModal
7271
canSave={false}

0 commit comments

Comments
 (0)