Skip to content
Snippets Groups Projects
Commit 0973a528 authored by Ray Schamp's avatar Ray Schamp Committed by Paul Kaplan
Browse files

Use explicit projectId prop

/ht @gnarf
parent b739493c
No related branches found
No related tags found
No related merge requests found
......@@ -18,7 +18,7 @@ if (process.env.NODE_ENV === 'production' && typeof window === 'object') {
import styles from './player.css';
const Player = ({isPlayerOnly, onSeeInside, ...props}) => (
const Player = ({isPlayerOnly, onSeeInside, projectId}) => (
<Box
className={classNames({
[styles.stageOnly]: isPlayerOnly
......@@ -28,14 +28,15 @@ const Player = ({isPlayerOnly, onSeeInside, ...props}) => (
<GUI
enableCommunity
isPlayerOnly={isPlayerOnly}
{...props}
projectId={projectId}
/>
</Box>
);
Player.propTypes = {
isPlayerOnly: PropTypes.bool,
onSeeInside: PropTypes.func
onSeeInside: PropTypes.func,
projectId: PropTypes.number
};
const mapStateToProps = state => ({
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment