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

Comments support button #2095

Merged
merged 2 commits into from
Nov 14, 2018
Merged

Comments support button #2095

merged 2 commits into from
Nov 14, 2018

Conversation

neb-b
Copy link

@neb-b neb-b commented Nov 7, 2018

Changes

  • Adds a button that will register support for adding comments in the app
  • Adds <Expandable> component

Still deciding on the copy for button/message

@lbry-bot lbry-bot assigned neb-b and unassigned neb-b Nov 7, 2018
@@ -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';
Copy link
Author

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(
Copy link
Contributor

Choose a reason for hiding this comment

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

😐

constructor() {
super();

this.state = {
Copy link
Contributor

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';
Copy link
Contributor

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?

Copy link
Author

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.

@lbry-bot lbry-bot assigned neb-b and unassigned skhameneh and neb-b Nov 14, 2018
@neb-b neb-b merged commit a8b8e02 into master Nov 14, 2018
@neb-b neb-b deleted the comments branch December 6, 2018 21:51
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