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') { ...@@ -18,7 +18,7 @@ if (process.env.NODE_ENV === 'production' && typeof window === 'object') {
import styles from './player.css'; import styles from './player.css';
const Player = ({isPlayerOnly, onSeeInside, ...props}) => ( const Player = ({isPlayerOnly, onSeeInside, projectId}) => (
<Box <Box
className={classNames({ className={classNames({
[styles.stageOnly]: isPlayerOnly [styles.stageOnly]: isPlayerOnly
...@@ -28,14 +28,15 @@ const Player = ({isPlayerOnly, onSeeInside, ...props}) => ( ...@@ -28,14 +28,15 @@ const Player = ({isPlayerOnly, onSeeInside, ...props}) => (
<GUI <GUI
enableCommunity enableCommunity
isPlayerOnly={isPlayerOnly} isPlayerOnly={isPlayerOnly}
{...props} projectId={projectId}
/> />
</Box> </Box>
); );
Player.propTypes = { Player.propTypes = {
isPlayerOnly: PropTypes.bool, isPlayerOnly: PropTypes.bool,
onSeeInside: PropTypes.func onSeeInside: PropTypes.func,
projectId: PropTypes.number
}; };
const mapStateToProps = state => ({ 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