-
Notifications
You must be signed in to change notification settings - Fork 414
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
Comments support button #2095
Comments support button #2095
Conversation
@@ -36,6 +37,7 @@ export const SKIP_UPGRADE = 'SKIP_UPGRADE'; | |||
export const START_UPGRADE = 'START_UPGRADE'; | |||
export const AUTO_UPDATE_DECLINED = 'AUTO_UPDATE_DECLINED'; | |||
export const AUTO_UPDATE_DOWNLOADED = 'AUTO_UPDATE_DOWNLOADED'; | |||
export const CLEAR_UPGRADE_TIMER = 'CLEAR_UPGRADE_TIMER'; |
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 was added to the lbry-redux action types but it should have never been there. I will do some cleanup in the future to make sure we aren't keeping types there that only belong in the app
import { connect } from 'react-redux'; | ||
import Expandable from './view'; | ||
|
||
export default connect( |
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.
😐
constructor() { | ||
super(); | ||
|
||
this.state = { |
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.
Can also do:
class MyComponent extends PureComponent {
state = {};
}
and use arrow fn's or bind syntax https://babeljs.io/blog/2015/05/14/function-bind
{description && ( | ||
<React.Fragment> | ||
<div className="card__subtext-title">About</div> | ||
const mediaType = contentType || 'unknown'; |
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.
Should 'unknown'
be a shared constant?
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.
Probably. Although I'm not sure where else it's used.
Changes
<Expandable>
componentStill deciding on the copy for button/message