mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2025-02-16 16:19:48 -05:00
Clean-up 'more' section in box component as per R
This commit is contained in:
parent
67d95554cb
commit
d780e43ae3
2 changed files with 7 additions and 7 deletions
|
@ -5,8 +5,8 @@ require('./box.scss');
|
|||
module.exports = React.createClass({
|
||||
propTypes: {
|
||||
title: React.PropTypes.string.isRequired,
|
||||
more: React.PropTypes.string,
|
||||
moreUrl: React.PropTypes.string
|
||||
moreTitle: React.PropTypes.string,
|
||||
moreHref: React.PropTypes.string
|
||||
},
|
||||
render: function () {
|
||||
return (
|
||||
|
@ -14,8 +14,8 @@ module.exports = React.createClass({
|
|||
<div className="box-header">
|
||||
<h4>{this.props.title}</h4>
|
||||
<p>
|
||||
<a href={this.props.moreUrl}>
|
||||
{this.props.more}
|
||||
<a href={this.props.moreHref}>
|
||||
{this.props.moreTitle}
|
||||
</a>
|
||||
</p>
|
||||
</div>
|
||||
|
|
|
@ -18,9 +18,9 @@ module.exports = React.createClass({
|
|||
<Box
|
||||
className="news"
|
||||
title="Scratch News"
|
||||
more="View All"
|
||||
moreUrl="/news">
|
||||
|
||||
moreTitle="View All"
|
||||
moreHref="/news">
|
||||
|
||||
<ul>
|
||||
{this.props.items.map(function (item) {
|
||||
return (
|
||||
|
|
Loading…
Reference in a new issue