Skip to content

Commit

Permalink
Me: Removes profile links creators to simplify markup
Browse files Browse the repository at this point in the history
  • Loading branch information
ebinnion committed Dec 3, 2015
1 parent d65f27a commit a5894e3
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 49 deletions.
44 changes: 0 additions & 44 deletions client/me/profile-links/creators.jsx

This file was deleted.

21 changes: 16 additions & 5 deletions client/me/profile-links/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,13 @@ var React = require( 'react' ),
*/
var ProfileLink = require( 'me/profile-link' ),
observe = require( 'lib/mixins/data-observe' ),
ProfileLinkCreators = require( 'me/profile-links/creators' ),
AddProfileLinksButtons = require( 'me/profile-links/add-buttons' ),
SectionHeader = require( 'components/section-header' ),
Card = require( 'components/card' ),
Notice = require( 'components/notice' ),
eventRecorder = require( 'me/event-recorder' );
eventRecorder = require( 'me/event-recorder' ),
ProfileLinksAddWordPress = require( 'me/profile-links-add-wordpress' ),
ProfileLinksAddOther = require( 'me/profile-links-add-other' );

module.exports = React.createClass( {

Expand Down Expand Up @@ -174,11 +175,21 @@ module.exports = React.createClass( {
},

renderForm() {
if ( 'wordpress' === this.state.showingForm ) {
return (
<ProfileLinksAddWordPress
userProfileLinks={ this.props.userProfileLinks }
onSuccess={ this.hideForms }
onCancel={ this.hideForms }
/>
);
}

return (
<ProfileLinkCreators
<ProfileLinksAddOther
userProfileLinks={ this.props.userProfileLinks }
showingForm={ this.state.showingForm }
hideForms={ this.hideForms }
onSuccess={ this.hideForms }
onCancel={ this.hideForms }
/>
);
},
Expand Down

0 comments on commit a5894e3

Please sign in to comment.