1
0
mirror of https://github.com/Pomax/BezierInfo-2.git synced 2025-09-03 13:23:27 +02:00

source links

This commit is contained in:
Pomax
2018-06-24 18:02:32 -07:00
parent 697afd626a
commit b254772d67
15 changed files with 42 additions and 17 deletions

View File

@@ -20,10 +20,16 @@ var baseClass = {
onKeyPress: this.onKeyPress
};
var sourceLink = `https://github.com/Pomax/BezierInfo-2/tree/master/components/sections/${this.props.section}/handler.js`;
return (
<figure className={this.props.inline ? "inline": false}>
<canvas ref="canvas" {...cprops} {...handlers} />
<figcaption>{this.props.title} {this.props.children}</figcaption>
<figcaption>
<a className="source" href={sourceLink}>source</a>
{this.props.title}
{this.props.children}
</figcaption>
</figure>
);
},