Skip to content

Commit fb40bae

Browse files
committed
Enable run on click behaviour in main app
1 parent eb2d174 commit fb40bae

File tree

2 files changed

+8
-2
lines changed
  • packages
    • app/src/app/pages/Sandbox/Editor/Content
    • common/src/components/RunOnClick

2 files changed

+8
-2
lines changed

packages/app/src/app/pages/Sandbox/Editor/Content/index.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,13 @@ class EditorPreview extends React.Component {
428428
? `Browser (${options.title || `:${options.port}`})`
429429
: `Browser`,
430430
Content: ({ hidden, options }) => (
431-
<Preview options={options} hidden={hidden} width="100%" height="100%" />
431+
<Preview
432+
runOnClick={store.preferences.runOnClick}
433+
options={options}
434+
hidden={hidden}
435+
width="100%"
436+
height="100%"
437+
/>
432438
),
433439
actions: [],
434440
};

packages/common/src/components/RunOnClick/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const RunOnClick = ({ onClick }) => (
2222
</div>
2323
<div className="play" />
2424
</div>
25-
<Text>Run on click</Text>
25+
<Text>Run On Click</Text>
2626
</Container>
2727
</Centered>
2828
</Fullscreen>

0 commit comments

Comments
 (0)