Skip to content

Commit

Permalink
Add back putting the sound library in the ui
Browse files Browse the repository at this point in the history
  • Loading branch information
paulkaplan committed Mar 22, 2017
1 parent 01cfbba commit a4db6c1
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/components/target-pane/target-pane.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ const VM = require('scratch-vm');
const Box = require('../box/box.jsx');
const BackdropLibrary = require('../../containers/backdrop-library.jsx');
const CostumeLibrary = require('../../containers/costume-library.jsx');
const SoundLibrary = require('../../containers/sound-library.jsx');
const SpriteLibrary = require('../../containers/sprite-library.jsx');
const SpriteSelectorComponent = require('../sprite-selector/sprite-selector.jsx');
const StageSelector = require('../../containers/stage-selector.jsx');
Expand Down Expand Up @@ -36,6 +37,7 @@ class TargetPane extends React.Component {
editingTarget,
backdropLibraryVisible,
costumeLibraryVisible,
soundLibraryVisible,
spriteLibraryVisible,
onChangeSpriteDraggability,
onChangeSpriteName,
Expand All @@ -48,6 +50,7 @@ class TargetPane extends React.Component {
onNewBackdropClick,
onRequestCloseBackdropLibrary,
onRequestCloseCostumeLibrary,
onRequestCloseSoundLibrary,
onRequestCloseSpriteLibrary,
onSelectSprite,
stage,
Expand Down Expand Up @@ -113,6 +116,11 @@ class TargetPane extends React.Component {
vm={vm}
onRequestClose={onRequestCloseCostumeLibrary}
/>
<SoundLibrary
visible={soundLibraryVisible}
vm={vm}
onRequestClose={onRequestCloseSoundLibrary}
/>
<BackdropLibrary
visible={backdropLibraryVisible}
vm={vm}
Expand Down Expand Up @@ -154,11 +162,14 @@ TargetPane.propTypes = {
onChangeSpriteY: React.PropTypes.func,
onDeleteSprite: React.PropTypes.func,
onNewBackdropClick: React.PropTypes.func,
onNewSoundClick: React.PropTypes.func,
onNewSpriteClick: React.PropTypes.func,
onRequestCloseBackdropLibrary: React.PropTypes.func,
onRequestCloseCostumeLibrary: React.PropTypes.func,
onRequestCloseSoundLibrary: React.PropTypes.func,
onRequestCloseSpriteLibrary: React.PropTypes.func,
onSelectSprite: React.PropTypes.func,
soundLibraryVisible: React.PropTypes.bool,
spriteLibraryVisible: React.PropTypes.bool,
sprites: React.PropTypes.objectOf(spriteShape),
stage: spriteShape,
Expand Down

0 comments on commit a4db6c1

Please sign in to comment.