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

Copy URL button #327

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Copy URL button #327

wants to merge 3 commits into from

Conversation

wnojopra
Copy link
Contributor

@wnojopra wnojopra commented Apr 26, 2019

Fixes #325

@wnojopra wnojopra requested a review from melissachang April 26, 2019 16:11
@wnojopra wnojopra mentioned this pull request Apr 26, 2019
Copy link
Contributor

@melissachang melissachang left a comment

Choose a reason for hiding this comment

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

Sorry, can you move the copy button between search box and participant count? The Save button is important; this removes the noise from around it.


const style = {
copyUrlButton: {
marginRight: "16px"
Copy link
Contributor

Choose a reason for hiding this comment

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

React will automatically append a "px" suffix so by convention we do this, to be slightly cleaner:

marginRight: 16

const { className } = this.props;

return (
<div onClick={this.handleButtonClick} style={style.copyUrlButton}>
Copy link
Contributor

Choose a reason for hiding this comment

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

It's recommended to use className rather than style.

In this repo we use the material-ui styling solution.

  • At the bottom of this file: export default withStyles(styles)(CopyUrlButton);
const { classes } = this.props;
... className={classes.copyUrlButton}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good to know, thanks! In this case, since we wanted to move the copyUrl button to the left we don't even need the extra styling. So I just removed this altogether.

melissachang
melissachang previously approved these changes Apr 26, 2019
Copy link
Contributor

@melissachang melissachang left a comment

Choose a reason for hiding this comment

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

I meant between search box and participant count. I pushed a commit with the changes (and some minor styling changes), let me know what you think.

Copy link
Contributor

@melissachang melissachang left a comment

Choose a reason for hiding this comment

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

Actually let me get Sean's opinion, let me remove approval

@melissachang melissachang self-requested a review April 26, 2019 18:38
@melissachang melissachang dismissed their stale review April 26, 2019 18:39

remove approval

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.

Add a 'copy-url' or 'share' button
2 participants