-
Notifications
You must be signed in to change notification settings - Fork 22
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
Pre-populate logo and newsroom URL from props if available #522
Conversation
@@ -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."*/ |
There was a problem hiding this comment.
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"*/ |
There was a problem hiding this comment.
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>*/} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same
@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. |
…n-newsroom-logo-and-url-from-wp-into-manager
@walfly updated |
…-from-wp-into-manager
Also replace un-implemented CMS media library for logo with just an img tag