Skip to content

Conversation

@benjiwheeler
Copy link
Contributor

by putting in an empty default onShare function, I had inadvertently made the button appear enabled in beta/standalone.

Copy link
Contributor

@chrisgarrity chrisgarrity left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to remove the proptype

onClickSave: () => dispatch(saveProject()),
onSeeCommunity: () => dispatch(setPlayer(true)),
onShare: () => {} // NOTE: implement this
onSeeCommunity: () => dispatch(setPlayer(true))

This comment was marked as abuse.

This comment was marked as abuse.

Copy link
Contributor

@chrisgarrity chrisgarrity left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After discussion - the presence or absence of the prop determines whether the button is active. Removing it from mapDispatchToProps is fine.

@benjiwheeler benjiwheeler merged commit 44dc609 into scratchfoundation:develop Oct 11, 2018
@benjiwheeler benjiwheeler deleted the disable-onshare branch October 23, 2018 02:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants