Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions src/components/ContentWrap.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -460,6 +460,10 @@ export default class ContentWrap extends Component {
trackEvent('ui', 'downloadJpeg');
}

shareClickHandler(e) {
trackEvent('ui', 'shareSurvey');
}

async resetSplitting() {
await this.setState({
codeSplitSizes: this.getCodeSplitSizes(),
Expand Down Expand Up @@ -765,8 +769,6 @@ export default class ContentWrap extends Component {
this.cm.js.setValue(codeService.addCode(code, param));
}

gotoShareSurvey() {}

render() {
return (
<SplitPane
Expand Down Expand Up @@ -1003,13 +1005,13 @@ export default class ContentWrap extends Component {
<div class="demo-side" id="js-demo-side" style="overflow-y: auto; -webkit-overflow-scrolling: touch;">
{window.zenumlDesktop ? (null) : (
<div className='promotion'>
<div className="downloads">
<div className="actions">
<a href='https://github.com/ZenUml/web-sequence/discussions/496' target="_blank"
style={{textDecoration:'none'}}>
<Button
className="btn--dark button icon-button hint--rounded hint--bottom-left"
aria-label="Share Your Work"
onClick={this.gotoShareSurvey.bind()}>
onClick={this.shareClickHandler.bind(this)}>
<span className="material-symbols-outlined">share</span>
<span>Share</span>
</Button>
Expand Down
2 changes: 1 addition & 1 deletion src/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ body:not(.light-version).overlay-visible .main-container {
font-weight: lighter;
}

.demo-side .promotion .downloads {
.demo-side .promotion .actions {
margin-left: auto;
display: flex;
align-items: center;
Expand Down