Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pre-populate logo and newsroom URL from props if available #522

Merged

Conversation

tobek
Copy link
Member

@tobek tobek commented Oct 12, 2018

Also replace un-implemented CMS media library for logo with just an img tag

@tobek tobek requested a review from walfly October 12, 2018 12:51
@tobek tobek changed the base branch from tobek/ch2449/send-in-save-load-data-from-cms-for-charter-roster-ui to master October 12, 2018 16:43
@@ -108,30 +117,29 @@ class CreateCharterPartOneComponent extends React.Component<CreateCharterPartOne
Logo
<QuestionToolTip
explainerText={
"You need to add a URL to a logo or image. You can add a logo to your WordPress media library and copy the URL here. We recommend the image dimensions to be at minimum 300 x 300 pixels."
/*"You need to add a URL to a logo or image. You can add a logo to your WordPress media library and copy the URL here. We recommend the image be square and at minimum 300 x 300 pixels."*/
Copy link
Contributor

Choose a reason for hiding this comment

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

why is this comment here

}
/>
</FormSubhead>
<LogoFormWrap>
<LogoURLWrap>
<LogoURLInput
placeholder="Enter URL or Open Media Library"
/*placeholder="Enter URL or Open Media Library"*/
Copy link
Contributor

Choose a reason for hiding this comment

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

remove commented code

noLabel
name="logoUrl"
value={this.props.charter.logoUrl || ""}
onChange={this.charterInputChange}
/>
</LogoURLWrap>
<TertiaryButton size={buttonSizes.SMALL}>Open Media Library</TertiaryButton>
<LogoImgWrap>{this.props.charter.logoUrl && <LogoImg src={this.props.charter.logoUrl} />}</LogoImgWrap>
{/*<TertiaryButton size={buttonSizes.SMALL}>Open Media Library</TertiaryButton>*/}
Copy link
Contributor

Choose a reason for hiding this comment

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

same

@tobek
Copy link
Member Author

tobek commented Oct 12, 2018

@walfly the designs called for a "upload logo to WP Media Library" button that it's not worth implementing before launch, but I had partially implemented it. Was just going to leave the markup in for when we do later. There's also a bunch of styles for it.

But yeah I'll remove it all, I can always blame my way to this commit if I want to get it back. Actually will link this PR to the ticket for implementing it.

@tobek
Copy link
Member Author

tobek commented Oct 15, 2018

@walfly updated

@tobek tobek merged commit 4b79f67 into master Oct 15, 2018
@tobek tobek deleted the tobek/ch2452/pass-in-newsroom-logo-and-url-from-wp-into-manager branch October 15, 2018 17:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants