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:
@@ -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>
|
||||
);
|
||||
},
|
||||
|
Reference in New Issue
Block a user