-
Notifications
You must be signed in to change notification settings - Fork 9
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
feat(PlaceholderContainer): add placeholder container component #31
Conversation
Preview is ready. |
20c17e7
to
a46a953
Compare
} | ||
|
||
&__description { | ||
margin-top: 10px; |
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.
variables.$smallOffset
?
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.
fixed
private renderContent() { | ||
const {html, contentSize, contentClassName} = this.props; | ||
|
||
const content = html ? ( |
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.
Let's use renderContent
function prop instead of html
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.
fixed
654439e
to
5152296
Compare
CODEOWNERS
Outdated
@@ -1 +1,2 @@ | |||
/src/components/FormRow @ogonkov | |||
/src/components/PlaceholderContainer @marginy |
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.
This should be GitHub login
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.
oops) fixed
type PlaceholderContainerImageSettingsProps = { | ||
url: string; | ||
alt?: string; | ||
size?: number; |
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.
Not sure if we need this prop, we already have image constraints. In fact, image from url can be rectangle shape or smaller size than image contanier
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.
That's a good point. I removed this prop.
} | ||
|
||
return ( | ||
<div className={b('action')}> |
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.
Maybe rename it to plural form, actions
?
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.
fixed
|
||
import './PlaceholderContainerAction.scss'; | ||
|
||
const b = block('placeholder-container-action'); |
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.
This should be the same block placeholder-container
and action is an element of the block
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.
fixed
I've also refactored structure of types and constants a little bit
8697ca3
to
951e2d7
Compare
No description provided.